Skip to content

Commit

Permalink
install firewall package
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledk2 committed Dec 8, 2024
1 parent c7f1374 commit 2a22791
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
python-version: '3.9'
- name: Install Ansible & Molecule
# TODO: review upgrade to Molecule 5.x
run: pip install "ansible<8" ansible-lint flake8 firewalld \
run: pip install "ansible<8" ansible-lint flake8 \
"molecule<5" "requests < 2.32.0" "ansible-compat<4" molecule-plugins[docker] pytest-testinfra
- name: Run Molecule
run: cd ansible && molecule test -s "${{ matrix.scenario }}"
14 changes: 13 additions & 1 deletion ansible/idr-firewall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
{{ idr_environment | default('idr') }}-omero-hosts
tasks:
- name: install firwalld
become: true
ansible.builtin.dnf:
update_cache: true
name: python3-firewall
state: present

- name: Accept all traffic
ansible.posix.firewalld:
zone: public
Expand All @@ -21,8 +28,13 @@

- hosts: "{{ idr_environment | default('idr') }}-proxy-hosts"


tasks:
- name: install firwalld
become: true
ansible.builtin.dnf:
update_cache: true
name: python3-firewall
state: present
# Allow:
# - all established/related in/out
# - all internal localhost connections
Expand Down

0 comments on commit 2a22791

Please sign in to comment.