fix tlogging

This commit is contained in:
Louis Abel 2023-04-21 21:46:27 -07:00
parent 206ac043cc
commit 5d79543340
Signed by: label
GPG Key ID: 6735C0E1BD65D048
3 changed files with 7 additions and 3 deletions

View File

@ -3,7 +3,7 @@
# linux-system-roles.tlog role, but with modifications. The expectation
# is that the system is enrolled to FreeIPA.
- name: Configure session recording
hosts: all
hosts: "{{ host|default('all') }}"
become: true
# This is to try to avoid the handler issue in pre/post tasks
@ -24,7 +24,7 @@
fail_msg: "/etc/no-ansible exists - skipping run on this node"
tasks:
- name: Loading Variables from OS Common
- name: Configure session recording for the designated system
import_tasks: tasks/tlog.yml
post_tasks:

View File

@ -50,6 +50,10 @@
- name: Configure common skel items
ansible.builtin.import_tasks: tasks/skel.yml
- name: Configure tlog for secure systems
import_tasks: tasks/tlog.yml
when: "'secureboot' in group_names"
post_tasks:
- name: Touching run file that ansible has ran here
ansible.builtin.file:

View File

@ -10,7 +10,7 @@
// A message which will be printed before starting
// recording and the user shell. Can be used to warn
// the user that the session is recorded.
"notice" : "\n** Session recording now in progress\n\n",
"notice" : "\nATTENTION! Your session is being recorded!\n\n",
// The number of seconds to cache captured data for before logging.
// The encoded data which does not reach payload size