Additional changes to remove privilaged command execution during the
installation proces. Also removed surplus file copies that are no longer
required.
A corner case where a vagrant VM isn't created before the installer is
run results in the vagrant-libvirt network not being defined or started.
Without this network the installer VM could not be started.
Change-Id: I2bd69a81b67c0f8149cd80abddce869675acba7d
diff --git a/install/ansible/roles/cluster-host/tasks/main.yml b/install/ansible/roles/cluster-host/tasks/main.yml
index 3d2296e..8035072 100644
--- a/install/ansible/roles/cluster-host/tasks/main.yml
+++ b/install/ansible/roles/cluster-host/tasks/main.yml
@@ -64,11 +64,20 @@
tags: [cluster-host]
- name: apt lists are up-to-date
- copy:
+ synchronize:
src: "/var/lib/apt/lists"
- dest: "/var/lib/apt"
+ dest: "/var/lib/apt/lists"
+ archive: no
+ owner: no
+ perms: no
+ rsync_opts:
+ - "--exclude=lock"
+ - "--exclude=partial"
+ recursive: yes
+ links: yes
tags: [cluster_host]
+
- name: Dependent software is installed (this can take about 10 Min, DONT'T PANIC, go for coffee instead)
command: dpkg -R -i "{{ target_voltha_home }}/deb_files"
# ignore_errors: true