From c8cf6484fd80e9dc6e04fa2d086a603ff7f7bb49 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 000000000000..28fbd160675a --- /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 in /etc/shells + ansible.builtin.lineinfile: + path: /etc/shells + regex: 'tmux\s*$' + state: absent