Add acl option to root mount in fstab
This commit is contained in:
parent
0fcfdd4bbc
commit
b16224334f
@ -30,6 +30,7 @@
|
|||||||
- "{{ service_users }}"
|
- "{{ service_users }}"
|
||||||
|
|
||||||
- name: Create service folders
|
- name: Create service folders
|
||||||
|
become: yes
|
||||||
become_user: "{{ item.0.name }}"
|
become_user: "{{ item.0.name }}"
|
||||||
file:
|
file:
|
||||||
path: "/home/{{ item.0.name }}/{{ item.1 }}"
|
path: "/home/{{ item.0.name }}/{{ item.1 }}"
|
||||||
@ -102,6 +103,16 @@
|
|||||||
name: container_t
|
name: container_t
|
||||||
permissive: true
|
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
|
- name: Add hosts file entry for hostname
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/hosts
|
path: /etc/hosts
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user