aboutsummaryrefslogtreecommitdiffstats
path: root/roles/vmm/tasks/network.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/vmm/tasks/network.yml')
-rw-r--r--roles/vmm/tasks/network.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/vmm/tasks/network.yml b/roles/vmm/tasks/network.yml
index b8fc7e1..9886e59 100644
--- a/roles/vmm/tasks/network.yml
+++ b/roles/vmm/tasks/network.yml
@@ -1,6 +1,8 @@
- name: start ip forwarding
command: sysctl net.inet.ip{{ item }}.forwarding=1
loop: "{{ vmm_network_forwarded_ips }}"
+ register: result
+ changed_when: item ~ "->" ~ item not in result.stdout_lines
- name: enable ip forwarding
lineinfile:
@@ -23,5 +25,5 @@
mode: 0640
create: true
-- name: start network switch
+- name: start network switch # noqa: no-changed-when
command: "sh /etc/netstart {{ vmm_network_switch.interface }}"
remember that computers suck.