diff --git a/tasks/main.yml b/tasks/main.yml index e0f38b9..e79851a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -28,8 +28,13 @@ path: "/home/{{ item }}/.bashrc" regexp: '^alias su=' line: "alias su=\"machinectl shell --uid\"" - loop: "{{ service_users}}" - + loop: "{{ service_users }}" + +- lineinfile: + path: "/root/.bashrc" + regexp: '^alias su=' + line: "alias su=\"machinectl shell --uid\"" + - name: Enable permissive_container_t SELinux Context selinux_permissive: name: container_t