Commit graph

12 commits

Author SHA1 Message Date
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
Mark Bolwell
466e88613e
with_items to loop
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
2023-01-25 09:49:43 +00:00
Mark Bolwell
b8085e5dc0
cis_v1.0.0 alignment updated
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
2023-01-19 10:07:14 +00:00
Mark Bolwell
acf0104f7a
lint updates
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
2023-01-13 12:10:18 +00:00
Mark Bolwell
3ead0d63ac
warn control count updates
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
2023-01-13 11:05:25 +00:00
Mark Bolwell
2634fabd41
v1.0.0 updates
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
2023-01-09 16:29:47 +00:00
Mark Bolwell
33340c7487
lint updates
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
2022-09-16 11:10:31 +01:00
Mark Bolwell
6b6a4a32c8
added warning count
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
2022-07-20 17:13:33 +01:00
Mark Bolwell
39780562c1
section 1 updates
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
2022-04-04 12:07:07 +01:00
Mark Bolwell
8c79bfe7fb
updated
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
2022-03-30 11:22:30 +01:00
Mark Bolwell
f808f30173
updated
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
2022-03-30 11:08:18 +01:00
Mark Bolwell
efdcb0b6f5
section_1 updates
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
2022-03-30 11:02:30 +01:00