diff --git a/tasks/main.yml b/tasks/main.yml index 5319611..77eac8f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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