Gather facts when os_hardening role is executed with tags (#708)

* Gather facts when os_hardening role is executed with tags

Signed-off-by: Martin Schurz <[email protected]>

* better when condition

Signed-off-by: Martin Schurz <[email protected]>

---------

Signed-off-by: Martin Schurz <[email protected]>
This commit is contained in:
schurzi authored and GitHub committed 2023-11-01 15:54:52 +01:00
1 parent 4978598e00
commit da017fa880
1 file changed
+6
+6
View File
@@ -1,4 +1,10 @@
---
- name: Gather facts, if not present
ansible.builtin.setup:
when: not ansible_facts
tags:
- always
- name: Fetch OS dependent variables
ansible.builtin.include_vars:
file: "{{ item }}"