Skip to content

Commit 4a13e03

Browse files
committed
Restarting libvirtd and fixing iptables save
1 parent c64e80d commit 4a13e03

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tasks/base_virt_ipi.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
# vim: set ft=ansible:
33

4+
- name: restart libvirtd
5+
service: name=libvirtd state=restarted
6+
47
- name: Copy over virtual network definition files
58
ansible.builtin.copy:
69
src: "{{ item }}"
@@ -268,8 +271,6 @@
268271
- ocp4_aio_deploy_type == "upi"
269272
- vm_name not in vm_list.list_vms
270273

271-
272-
273274
# - name: Enable firewalld ports for IPI deployments
274275
# firewalld:
275276
# port: 6230-6236/udp
@@ -569,7 +570,7 @@
569570
when: not ocp4_aio_deploy_compact
570571

571572
- name: Save iptables rules
572-
ansible.builtin.command: iptables-save > /etc/sysconfig/iptables
573+
ansible.builtin.shell: "iptables-save > /etc/sysconfig/iptables"
573574

574575
- name: restart iptables
575576
service: name=iptables state=restarted

0 commit comments

Comments
 (0)