Add acl option to root mount in fstab

This commit is contained in:
Mike Holloway 2025-11-28 00:59:20 -05:00
parent 0fcfdd4bbc
commit b16224334f

View File

@ -30,6 +30,7 @@
- "{{ service_users }}"
- name: Create service folders
become: yes
become_user: "{{ item.0.name }}"
file:
path: "/home/{{ item.0.name }}/{{ item.1 }}"
@ -102,6 +103,16 @@
name: container_t
permissive: true
- name: Add acl option to root in fstab
mount:
name: "{{ item.mount }}"
src: "{{ item.device }}"
fstype: "{{ item.fstype }}"
opts: "{{ item.options }},acl"
state: present
with_items: "{{ ansible_mounts }}"
when: item.options.find(",") >= 0 and item.options.find("acl") == -1 and item.mount == "/" and '"molecule" not in group_names'
- name: Add hosts file entry for hostname
lineinfile:
path: /etc/hosts