main.yml 476 B

12345678910111213141516171819
  1. ---
  2. - name: Detecting Atomic Host Operating System
  3. stat:
  4. path: /run/ostree-booted
  5. register: r_os_firewall_ostree_booted
  6. - name: Set fact r_os_firewall_is_atomic
  7. set_fact:
  8. r_os_firewall_is_atomic: "{{ r_os_firewall_ostree_booted.stat.exists }}"
  9. - import_tasks: firewalld.yml
  10. when:
  11. - os_firewall_enabled | bool
  12. - os_firewall_use_firewalld | bool
  13. - import_tasks: iptables.yml
  14. when:
  15. - os_firewall_enabled | bool
  16. - not os_firewall_use_firewalld | bool