Skip to content

Commit 3c74a6f

Browse files
HVSharma12richm
authored andcommitted
fix: add set_vars
Signed-off-by: HVSharma12 <harshvardhan.sharma@suse.com>
1 parent fc2ccfd commit 3c74a6f

2 files changed

Lines changed: 3 additions & 30 deletions

File tree

tasks/firewalld.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,4 @@
11
---
2-
- name: Ensure ansible_facts used by role
3-
setup:
4-
gather_subset: "{{ __firewall_required_facts_subsets }}"
5-
when: __firewall_required_facts |
6-
difference(ansible_facts.keys() | list) | length > 0
7-
8-
- name: Determine if system is ostree and set flag
9-
when: __firewall_is_ostree is not defined
10-
block:
11-
- name: Check if system is ostree
12-
stat:
13-
path: /run/ostree-booted
14-
register: __ostree_booted_stat
15-
16-
- name: Set flag to indicate system is ostree
17-
set_fact:
18-
__firewall_is_ostree: "{{ __ostree_booted_stat.stat.exists }}"
19-
20-
- name: Determine if system is transactional update and set flag
21-
when: not __firewall_is_transactional is defined
22-
block:
23-
- name: Check if transactional-update exists in /sbin
24-
stat:
25-
path: /sbin/transactional-update
26-
register: __transactional_update_stat
27-
28-
- name: Set flag if transactional-update exists
29-
set_fact:
30-
__firewall_is_transactional: "{{ __transactional_update_stat.stat.exists }}"
31-
322
- name: Determine if system is booted with systemd
333
when: __firewall_is_booted is not defined
344
block:

tasks/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
---
2+
- name: Set platform/version specific variables
3+
include_tasks: set_vars.yml
4+
25
- name: Setup firewalld
36
include_tasks: firewalld.yml
47

0 commit comments

Comments
 (0)