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

Version Path
cloud-mu-3.5.1 ansible/roles/geerlingguy.firewall/tasks/disable-other-firewalls.yml
cloud-mu-3.5.0 ansible/roles/geerlingguy.firewall/tasks/disable-other-firewalls.yml
cloud-mu-3.4.0 ansible/roles/geerlingguy.firewall/tasks/disable-other-firewalls.yml
cloud-mu-3.3.2 ansible/roles/geerlingguy.firewall/tasks/disable-other-firewalls.yml
cloud-mu-3.3.1 ansible/roles/geerlingguy.firewall/tasks/disable-other-firewalls.yml
cloud-mu-3.3.0 ansible/roles/geerlingguy.firewall/tasks/disable-other-firewalls.yml
cloud-mu-3.2.0 ansible/roles/geerlingguy.firewall/tasks/disable-other-firewalls.yml
cloud-mu-3.1.6 ansible/roles/geerlingguy.firewall/tasks/disable-other-firewalls.yml
cloud-mu-3.1.5 ansible/roles/geerlingguy.firewall/tasks/disable-other-firewalls.yml
cloud-mu-3.1.4 ansible/roles/geerlingguy.firewall/tasks/disable-other-firewalls.yml
cloud-mu-3.1.3 ansible/roles/geerlingguy.firewall/tasks/disable-other-firewalls.yml
cloud-mu-3.1.2 ansible/roles/geerlingguy.firewall/tasks/disable-other-firewalls.yml
cloud-mu-3.1.2beta2 ansible/roles/geerlingguy.firewall/tasks/disable-other-firewalls.yml
cloud-mu-3.1.1 ansible/roles/geerlingguy.firewall/tasks/disable-other-firewalls.yml
cloud-mu-3.1.0 ansible/roles/geerlingguy.firewall/tasks/disable-other-firewalls.yml
cloud-mu-3.0.2 ansible/roles/geerlingguy.firewall/tasks/disable-other-firewalls.yml
cloud-mu-3.0.1 ansible/roles/geerlingguy.firewall/tasks/disable-other-firewalls.yml
cloud-mu-3.0.0 ansible/roles/geerlingguy.firewall/tasks/disable-other-firewalls.yml
cloud-mu-3.0.0beta ansible/roles/geerlingguy.firewall/tasks/disable-other-firewalls.yml
cloud-mu-2.1.0beta ansible/roles/geerlingguy.firewall/tasks/disable-other-firewalls.yml