blob: dc6c5d3b788bbea02b0cc090ef53bd38bce447e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
---
- name: RPM | Determine if firewalld installed
command: "rpm -q firewalld"
register: s
changed_when: false
failed_when: false
check_mode: no
- name: RPM | Determine if firewalld enabled
command: "systemctl status firewalld.service"
register: ss
changed_when: false
failed_when: false
check_mode: no
- name: Set the contiv_has_firewalld fact
set_fact:
contiv_has_firewalld: true
when: s.rc == 0 and ss.rc == 0
- name: Determine if iptables-services installed
command: "rpm -q iptables-services"
register: s
changed_when: false
failed_when: false
check_mode: no
- name: Set the contiv_has_iptables fact
set_fact:
contiv_has_iptables: true
when: s.rc == 0
|