Skip to content
Snippets Groups Projects
Commit b177f04f authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "disable firewall in bootstrap-server"

parents 356ada59 d7ed0142
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