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

@ -97,7 +97,7 @@
- name: "PRELIM | Section 1.1 | Create list of mount points"
ansible.builtin.set_fact:
mount_names: "{{ ansible_mounts | map(attribute='mount') | list }}"
mount_names: "{{ ansible_facts.mounts | map(attribute='mount') | list }}"
tags:
- level1-server
- level1-workstation