feat: Import code for role

Signed-off-by: Radovan Sroka <rsroka@redhat.com>
This commit is contained in:
Radovan Sroka
2024-11-12 11:15:10 +01:00
committed by Sergei Petrosian
parent 1b526b93ea
commit b84e29c40e
19 changed files with 552 additions and 115 deletions
+4 -4
View File
@@ -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 }}"