--- - 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 systemd: name: "firewalld" ignore_errors: true register: ss - name: Set the contiv_has_firewalld fact set_fact: contiv_has_firewalld: true when: s.rc == 0 and ss.status.ActiveState == 'active' - 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