Commit Graph

13 Commits

Author SHA1 Message Date
Larry Smith Jr d27a3809d9 Fixed linting issues 2023-06-15 08:52:28 -04:00
Michal Nasiadka a28791cc48 Change ansible_distribution usage to ansible_facts
Closes #95
2022-10-13 15:55:07 +02:00
Mariusz Sielicki e9ff7e3faf fix for debian testing / sid 2022-05-27 18:23:17 +02:00
Samuel Mutel 6e74c9714e enh: Add variable rescan_scsi_command 2022-04-11 13:49:46 +02:00
Mark Goddard 73b6bce608 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.<fact>.

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
2021-05-13 17:21:42 +01:00
Larry Smith Jr c9a9e1660e Cleaned up conditionals logic 2020-04-27 13:47:43 -04:00
Charlie Mordant 2f63eab727 code smells 2020-04-17 12:56:31 +02:00
Charlie Mordant ba5d929fce use dots instead of carets 2020-04-15 15:14:30 +02:00
Larry Smith Jr 386cc28bdb Addresses issue #10
Signed-off-by: Larry Smith Jr <mrlesmithjr@gmail.com>
2017-06-11 14:57:53 -04:00
Larry Smith Jr 9f59211209 updated vars and meta 2015-11-03 09:37:38 -05:00
Larry Smith Jr 686455514d cleaned up and fixed all tasks including swap 2015-11-03 09:22:00 -05:00
Larry Smith Jr a5103ff639 changing role tasks and vars 2015-11-02 23:38:23 -05:00
Larry Smith Jr d1d99b2f17 first commit 2015-11-02 21:23:03 -05:00