Sha256: 606d943d798c67070ab8aeaab372e56ac3962b14c57a3e9c1b5f1c466b667abb
Contents?: true
Size: 1.52 KB
Versions: 20
Compression:
Stored size: 1.52 KB
Contents
--- - name: Check if firewalld package is installed (on RHEL). command: yum list installed firewalld args: warn: false register: firewalld_installed ignore_errors: true changed_when: false when: - ansible_os_family == "RedHat" - firewall_disable_firewalld check_mode: false - name: Disable the firewalld service (on RHEL, if configured). service: name: firewalld state: stopped enabled: false when: - ansible_os_family == "RedHat" - firewall_disable_firewalld - firewalld_installed.rc == 0 - name: Check if ufw package is installed (on Ubuntu). command: service ufw status args: warn: false register: ufw_installed ignore_errors: true changed_when: false when: - ansible_distribution == "Ubuntu" - firewall_disable_ufw check_mode: false - name: Disable the ufw firewall (on Ubuntu, if configured). service: name: ufw state: stopped enabled: false when: - ansible_distribution == "Ubuntu" - firewall_disable_ufw - ufw_installed.rc == 0 - name: Check if ufw package is installed (on Archlinux). command: pacman -Q ufw args: warn: false register: ufw_installed ignore_errors: true changed_when: false when: - ansible_distribution == "Archlinux" - firewall_disable_ufw check_mode: false - name: Disable the ufw firewall (on Archlinux, if configured). service: name: ufw state: stopped enabled: false when: - ansible_distribution == "Archlinux" - firewall_disable_ufw - ufw_installed.rc == 0
Version data entries
20 entries across 20 versions & 1 rubygems