Skip to content

Latest commit

 

History

History
63 lines (45 loc) · 1.4 KB

README.md

File metadata and controls

63 lines (45 loc) · 1.4 KB

Ansible Role - havlasme.linux.mount

Apache-2.0 license

An Ansible role to manage linux mounts on Debian and Ubuntu running systemd.

  • Create, Update, and Delete a Mount

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

# mount list
linux_mount: [ ]
## - name: string
##   src: string | d(omit)
##   boot: boolean | d(omit)
##   fstype: string | d(omit)
##   opts: string | d(omit)
##   state: enum('present', 'absent', 'mounted', 'umnounted', 'remounted') | d('mounted')

Dependencies

Ansible.Posix

ansible-galaxy collection install ansible.posix

Example Playbook

- hosts: 'all'

  tasks:
  - ansible.builtin.include_role:
      name: 'havlasme.linux.mount'
    vars:
      linux_mount:
      - name: '/tmp'
        src: 'tmpfs'
        fstype: 'tmpfs'

License

Apache-2.0

Author Information

Created in 2024 by Tomáš Havlas.