Ansible: Fix package cache updates
[csit.git] / resources / tools / testbed-setup / ansible / roles / vpp / tasks / main.yaml
index 5d02225..06930b2 100644 (file)
@@ -1,14 +1,28 @@
 ---
 # file: roles/sut/tasks/main.yaml
 
+- Name: Update package cache (apt)
+  apt:
+    update_cache: yes
+    cache_valid_time: 3600
+  when:
+    - ansible_distribution|lower == 'ubuntu'
+
 - name: SUT - Install Distribution - Release - Machine Prerequisites
   package:
     name: "{{ packages | flatten(levels=1) }}"
     state: latest
-    update_cache: true
   tags:
     - install-dependencies
 
+- name: SUT - Install VPP 19.08 PIP requirements
+  pip:
+    name:
+      - "aenum==2.1.2"
+    executable: pip2
+  tags:
+    - install-pip
+
 - name: SUT - Copy 80-vpp.conf
   file:
     src: "/dev/null"
@@ -16,4 +30,4 @@
     state: "link"
   become: yes
   tags:
-    - copy-80-vpp
+    - create-80-vpp