No more verbose on kvm, use full kvm clone, up down interface instead of reboot

This commit is contained in:
2018-11-25 09:54:40 -05:00
parent 207f509a25
commit c8f851d4be
5 changed files with 15 additions and 8 deletions

View File

@@ -10,7 +10,7 @@
template: src=../roles/configure-interfaces/templates/eth.cfg.j2 dest=/etc/network/interfaces.d/{{ interface_name }}.cfg
- name: Up down interface
shell: "bash -c 'sleep 15s; reboot;' &"
shell: "(sleep 3s; ifdown {{ interface_name }} && ifup {{ interface_name }};) &"
ignore_errors: true
vars:
interface_name: "{{ ansible_default_ipv4.interface }}"