Skip to content
Snippets Groups Projects
Commit d7ed0142 authored by prameswar's avatar prameswar
Browse files

disable firewall in bootstrap-server

Closes-Bug: #1638762

Change-Id: I23565f72166088444a49269ff9e406a3ab7a40d4
parent 9779778a
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,28 @@ ...@@ -4,6 +4,28 @@
become: True become: True
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
- name: Set firewall default policy
ufw: state=disabled policy=allow
when: ansible_os_family == 'Debian'
- name: Check if firewalld is installed
command: rpm -q firewalld
register: firewalld_check
failed_when: firewalld_check.rc > 1
when: ansible_os_family == 'RedHat'
- name: Disable firewalld
become: True
service:
name: "{{ item }}"
enabled: false
state: stopped
with_items:
- firewalld
when:
- ansible_os_family == 'RedHat'
- firewalld_check.rc == 0
- name: Install apt packages - name: Install apt packages
package: name={{item}} state=present package: name={{item}} state=present
become: True become: True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment