From 30ffb33780e09bcdafb12e73b272ae24d5d2631b Mon Sep 17 00:00:00 2001 From: Armando Acosta Date: Fri, 21 Jun 2024 13:20:58 -0600 Subject: [PATCH] Add ansible remediation For no_tmux_in_shells rule Signed-off-by: Armando Acosta --- .../no_tmux_in_shells/ansible/shared.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 linux_os/guide/system/accounts/accounts-physical/screen_locking/console_screen_locking/no_tmux_in_shells/ansible/shared.yml diff --git a/linux_os/guide/system/accounts/accounts-physical/screen_locking/console_screen_locking/no_tmux_in_shells/ansible/shared.yml b/linux_os/guide/system/accounts/accounts-physical/screen_locking/console_screen_locking/no_tmux_in_shells/ansible/shared.yml new file mode 100644 index 00000000000..4678064ec77 --- /dev/null +++ b/linux_os/guide/system/accounts/accounts-physical/screen_locking/console_screen_locking/no_tmux_in_shells/ansible/shared.yml @@ -0,0 +1,11 @@ +# platform = multi_platform_all +# reboot = false +# strategy = restrict +# complexity = low +# disruption = low + +- name: {{{ rule_title }}} - Ensure tmux line not exists + ansible.builtin.lineinfile: + path: /etc/shells + regex: 'tmux\s*$' + state: absent