Skip to content

Commit

Permalink
move docker0 interface to public firewalld zone by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Tcharl committed Aug 19, 2023
1 parent e5b2937 commit 8c6de07
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Whether this module should use the "become" option for configuring firewalld

disable_vhost_configuration: false
reverse_proxy_firewall_zone: docker
reverse_proxy_firewall_zone: public

# Reverse proxy
docker_shared_data: /usr/share/dockerdata
Expand Down
2 changes: 1 addition & 1 deletion molecule/default/tests/test_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_nginx_proxy_vhost_files_contains_target(host):

def test_docker_interface_is_configured_in_firewalld(host):
command = """
sudo firewall-cmd --list-all --zone=docker | \
sudo firewall-cmd --list-all --zone=public | \
grep -c 'docker0'
"""
cmd = host.run(command)
Expand Down
2 changes: 2 additions & 0 deletions tasks/nginx-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
- name: "{{ reverse_proxy_firewall_zone }}"
nics:
- "{{ ansible_containerization_docker_network_interface }}"
enabled_services:
- service: https

- name: Nginx-proxy | create nginx directories
ansible.builtin.file:
Expand Down

0 comments on commit 8c6de07

Please sign in to comment.