RHEL9-CIS/tasks/section_1
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
..
cis_1.1.1.x.yml fqcn updates 2023-01-19 13:12:33 +00:00
cis_1.1.2.x.yml use ansible_facts to reference facts 2023-04-24 08:41:08 +02:00
cis_1.1.3.x.yml use ansible_facts to reference facts 2023-04-24 08:41:08 +02:00
cis_1.1.4.x.yml use ansible_facts to reference facts 2023-04-24 08:41:08 +02:00
cis_1.1.5.x.yml use ansible_facts to reference facts 2023-04-24 08:41:08 +02:00
cis_1.1.6.x.yml use ansible_facts to reference facts 2023-04-24 08:41:08 +02:00
cis_1.1.7.x.yml use ansible_facts to reference facts 2023-04-24 08:41:08 +02:00
cis_1.1.8.x.yml Readme Update, Yamllint Update 2023-04-10 13:48:47 -04:00
cis_1.1.x.yml Readme Update, Yamllint Update 2023-04-10 13:48:47 -04:00
cis_1.2.x.yml use ansible_facts to reference facts 2023-04-24 08:41:08 +02:00
cis_1.3.x.yml updated marker 2023-03-10 15:19:35 +00:00
cis_1.4.x.yml #36 thanks to @fahadysf 2023-02-27 17:26:15 +00:00
cis_1.5.x.yml updated var naming 2023-03-01 09:17:38 +00:00
cis_1.6.1.x.yml replace module dest -> path 2023-01-26 08:29:30 +00:00
cis_1.7.x.yml replaced dest for path on file module 2023-01-26 09:31:27 +00:00
cis_1.8.x.yml moved notify to task 2023-01-26 16:02:12 +00:00
cis_1.9.yml lint updates 2023-01-13 12:10:18 +00:00
cis_1.10.yml lint updates 2023-01-13 12:10:18 +00:00
main.yml fqcn update 2023-01-19 13:31:53 +00:00