RHEL9-CIS/tasks
Michal Nasiadka 170b91c249
use ansible_facts to reference facts
By default, Ansible injects a variable for every fact, prefixed with
ansible_. This can result in a large number of variables for each host,
which at scale can incur a performance penalty. Ansible provides a
configuration option [0] that can be set to False to prevent this
injection of facts. In this case, facts should be referenced via
ansible_facts..

This change updates all references to Ansible facts from using
individual fact variables to using the items in the
ansible_facts dictionary. This allows users to disable fact variable
injection in their Ansible configuration, which may provide some
performance improvement.

[0] https://docs.ansible.com/ansible/latest/reference_appendices/config.html#inject-facts-as-vars

Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
2023-04-24 08:41:08 +02:00
..
section_1 use ansible_facts to reference facts 2023-04-24 08:41:08 +02:00
section_2 Linting 2023-03-20 15:16:15 +00:00
section_3 Linting 2023-03-20 15:16:15 +00:00
section_4 updated marker 2023-03-10 15:19:35 +00:00
section_5 Fix system accounts 2023-03-17 14:39:07 +00:00
section_6 use ansible_facts to reference facts 2023-04-24 08:41:08 +02:00
auditd.yml variable naming 2023-03-01 10:17:37 +00:00
check_prereqs.yml lint updates 2023-01-13 12:10:18 +00:00
LE_audit_setup.yml lint updates 2023-01-13 12:10:18 +00:00
main.yml use ansible_facts to reference facts 2023-04-24 08:41:08 +02:00
parse_etc_password.yml with_items to loop 2023-01-25 09:49:43 +00:00
post.yml variable naming 2023-03-01 10:17:37 +00:00
post_remediation_audit.yml lint updates 2023-01-13 12:10:18 +00:00
pre_remediation_audit.yml added benchamrk audit validation 2023-03-13 14:04:38 +00:00
prelim.yml use ansible_facts to reference facts 2023-04-24 08:41:08 +02:00
warning_facts.yml Removed -automated 2023-01-13 14:15:50 +00:00