Skip to content
Snippets Groups Projects
Verified Commit f1161737 authored by Florian Pritz's avatar Florian Pritz
Browse files

mariadb: Disable firewall rules when networking is disabled


Signed-off-by: default avatarFlorian Pritz <bluewind@xinu.at>
parent 669f7f54
No related branches found
No related tags found
No related merge requests found
......@@ -51,5 +51,5 @@
# the source addresses here could be tightened up more, but it's far better
# than having mariadb open to the world
- name: open firewall holes to other infrastructure hosts
firewalld: service=mysql permanent=true state=enabled source={{item}}
firewalld: service=mysql permanent=true state="{{'disabled' if mariadb_skip_networking else 'enabled'}}" source={{item}}
with_items: "{{ groups['all'] }}"
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