From 9768c23ca41718211e4d45c0abff269c129a68f4 Mon Sep 17 00:00:00 2001 From: Mike Holloway Date: Fri, 20 Sep 2024 03:49:58 -0400 Subject: [PATCH] Escaping quotes --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index c3a554b..50c6b13 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -32,8 +32,8 @@ - lineinfile: path: "/root/.bashrc" - regexp: '^alias su=' - line: "alias su=\"machinectl shell --uid\"" + regexp: '^su() ' + line: "su() { if [[ $1 == \"-\" ]]; then command machinectl shell --uid \"$2\"; else command machinectl shell --uid \"$1\"; fi; }" - name: Enable permissive_container_t SELinux Context selinux_permissive: