roles/vmhost: Open libvirt migration firewall port

jenkins-master
Dustin 2018-07-29 10:39:36 -05:00
parent da79e8482c
commit f078522d97
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,2 @@
- name: save firewalld configuration
command: firewall-cmd --runtime-to-permanent

View File

@ -61,3 +61,11 @@
name: '{{ item.name }}' name: '{{ item.name }}'
autostart: true autostart: true
with_items: '{{ libvirt_networks }}' with_items: '{{ libvirt_networks }}'
- name: ensure libvirtd migration port is allowed in the firewall
firewalld:
port=49152/tcp
permanent=no
immediate=yes
state=enabled
notify: save firewalld configuration