Fix inject_facts_as_vars

Also enabled testing of this in CI to prevent regressions.

See:
- https://docs.ansible.com/ansible/2.9/reference_appendices/config.html#inject-facts-as-vars
- https://github.com/ansible-lockdown/RHEL9-CIS/pull/54

Signed-off-by: Will Szumski <will@stackhpc.com>
This commit is contained in:
Will Szumski 2023-11-15 18:04:28 +00:00
parent 50c8945565
commit 4cbbf8dfd8
3 changed files with 4 additions and 4 deletions

View file

@ -16,4 +16,4 @@ rhel9cis_allowed_crypto_policies_modules:
warn_control_list: ""
warn_count: 0
gpg_key_package: "{{ ansible_distribution | lower }}-gpg-keys"
gpg_key_package: "{{ ansible_facts.distribution | lower }}-gpg-keys"