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:
1 parent
4978598e00
commit
da017fa880
1 file changed
+6
@@ -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 }}"
|
||||
|
||||
Reference in new issue
Block a user