Speed things up by adding hostname to /etc/hosts
diff --git a/xos/synchronizers/vcpe/steps/sync_vcpetenant_vtn.yaml b/xos/synchronizers/vcpe/steps/sync_vcpetenant_vtn.yaml
index 4a9ec45..4c6dcdb 100644
--- a/xos/synchronizers/vcpe/steps/sync_vcpetenant_vtn.yaml
+++ b/xos/synchronizers/vcpe/steps/sync_vcpetenant_vtn.yaml
@@ -1,6 +1,6 @@
---
- hosts: {{ instance_name }}
- gather_facts: False
+ #gather_facts: False
connection: ssh
user: ubuntu
sudo: yes
@@ -71,6 +71,12 @@
tasks:
+ - name: Add hostname to /etc/hosts
+ lineinfile: dest=/etc/hosts
+ regexp='^127\.0\.0\.1'
+ line='127.0.0.1 localhost {{ ansible_hostname }}'
+ owner=root group=root mode=0644
+
- name: Check to see if network is setup
stat: path=/root/network_is_setup
register: network_is_setup