rpm.yml 497 B

123456789101112131415161718192021222324
  1. ---
  2. - name: RPM | Determine if firewalld installed
  3. command: "rpm -q firewalld"
  4. register: s
  5. changed_when: false
  6. failed_when: false
  7. always_run: yes
  8. - name: Set the has_firewalld fact
  9. set_fact:
  10. has_firewalld: true
  11. when: s.rc == 0
  12. - name: Determine if iptables-services installed
  13. command: "rpm -q iptables-services"
  14. register: s
  15. changed_when: false
  16. failed_when: false
  17. always_run: yes
  18. - name: Set the has_iptables fact
  19. set_fact:
  20. has_iptables: true
  21. when: s.rc == 0