Skip to content

Commit

Permalink
Fix inject_facts_as_vars
Browse files Browse the repository at this point in the history
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
Signed-off-by: Will Szumski <[email protected]>
  • Loading branch information
jovial committed Nov 15, 2023
1 parent 3461d49 commit 90b4cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/prelim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,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:
- always

Expand Down

0 comments on commit 90b4cbb

Please sign in to comment.