feat: Import code for role
Signed-off-by: Radovan Sroka <rsroka@redhat.com>
This commit is contained in:
committed by
Sergei Petrosian
parent
1b526b93ea
commit
b84e29c40e
+4
-4
@@ -1,12 +1,12 @@
|
||||
---
|
||||
- name: Ensure ansible_facts used by role
|
||||
setup:
|
||||
gather_subset: "{{ __template_required_facts_subsets }}"
|
||||
when: __template_required_facts |
|
||||
gather_subset: "{{ __aide_required_facts_subsets }}"
|
||||
when: __aide_required_facts |
|
||||
difference(ansible_facts.keys() | list) | length > 0
|
||||
|
||||
- name: Determine if system is ostree and set flag
|
||||
when: not __template_is_ostree is defined
|
||||
when: not __aide_is_ostree is defined
|
||||
block:
|
||||
- name: Check if system is ostree
|
||||
stat:
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
- name: Set flag to indicate system is ostree
|
||||
set_fact:
|
||||
__template_is_ostree: "{{ __ostree_booted_stat.stat.exists }}"
|
||||
__aide_is_ostree: "{{ __ostree_booted_stat.stat.exists }}"
|
||||
|
||||
- name: Set platform/version specific variables
|
||||
include_vars: "{{ __vars_file }}"
|
||||
|
||||
Reference in New Issue
Block a user