roles/vmhost: Open libvirt migration firewall port
This commit is contained in:
2
roles/vmhost/handlers/main.yml
Normal file
2
roles/vmhost/handlers/main.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
- name: save firewalld configuration
|
||||
command: firewall-cmd --runtime-to-permanent
|
||||
@@ -61,3 +61,11 @@
|
||||
name: '{{ item.name }}'
|
||||
autostart: true
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user