| 12345678910111213141516171819202122 |
- - name: Ensure mount point exists {{ mount_path }}
- file:
- path: "{{ mount_path }}"
- owner: "{{ mount_owner }}"
- group: "{{ mount_group }}"
- mode: "{{ mount_mode }}"
- state: directory
- - name: Mount {{ mount_dev }} @ {{ mount_path }}
- ansible.posix.mount:
- path: "{{ mount_path }}"
- src: "{{ mount_dev }}"
- fstype: "{{ mount_fs | default(omit) }}"
- opts: "{{ mount_opts | default(omit) }}"
- boot: "{{ mount_boot }}"
- state: mounted
- - name: Secure mounted path {{ mount_path }}
- file:
- path: "{{ mount_path }}"
- owner: "{{ mount_owner }}"
- group: "{{ mount_group }}"
- mode: "{{ mount_mode }}"
- state: directory
|