An Ansible role to manage linux mounts on Debian and Ubuntu running systemd.
- Create, Update, and Delete a Mount
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')
ansible-galaxy collection install ansible.posix
- hosts: 'all'
tasks:
- ansible.builtin.include_role:
name: 'havlasme.linux.mount'
vars:
linux_mount:
- name: '/tmp'
src: 'tmpfs'
fstype: 'tmpfs'
Created in 2024 by Tomáš Havlas.