Add acl option to root mount in fstab
This commit is contained in:
parent
0fcfdd4bbc
commit
b16224334f
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user