Skip to content

Commit

Permalink
install and start firewall
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledk2 committed Dec 8, 2024
1 parent 2a22791 commit db76dff
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions ansible/idr-firewall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,21 @@
{{ idr_environment | default('idr') }}-omero-hosts
tasks:
- name: install firwalld
- name: install python3-firewall
become: true
ansible.builtin.dnf:
update_cache: true
name: python3-firewall
name:
- python3-firewall
- firewalld
state: present

- name: Enable service firewall
ansible.builtin.service:
name: httpd
enabled: yes
state: started

- name: Accept all traffic
ansible.posix.firewalld:
zone: public
Expand All @@ -29,12 +37,21 @@
- hosts: "{{ idr_environment | default('idr') }}-proxy-hosts"

tasks:
- name: install firwalld
- name: install python3-firewall
become: true
ansible.builtin.dnf:
update_cache: true
name: python3-firewall
name:
- python3-firewall
- firewalld
state: present

- name: Enable service firewall
ansible.builtin.service:
name: httpd
enabled: yes
state: started

# Allow:
# - all established/related in/out
# - all internal localhost connections
Expand Down

0 comments on commit db76dff

Please sign in to comment.