File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments