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

@@ -2,8 +2,11 @@
- name: Fix dpkg if needed
raw: dpkg --configure -a
- name: Update apt
raw: apt-get update
- name: Install package dependencies
raw: apt-get update -qq && apt-get install -y python-simplejson python-urllib3 python-openssl python-pyasn1 python-pip ca-certificates
raw: apt-get install -y python-simplejson python-urllib3 python-openssl python-pyasn1 python-pip ca-certificates
- name: Install pip dependencies
raw: pip install ndg-httpsclient

View File

@@ -1,8 +1,7 @@
{
{% if inventory_hostname == "nextcloud" %}"storage-driver": "devicemapper",{% endif %}
"hosts": ["unix:///var/run/docker.sock", "tcp://0.0.0.0:2375"],
"insecure-registries" : ["{{ registry_location }}","10.0.0.221:5000"],
"registry-mirrors": ["http://10.0.0.221:5000"],
"metrics-addr" : "0.0.0.0:9323",
"experimental" : true
}
}

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 }}"