Removed warning message from Ansible
[ci-management.git] / packer / provision / local-docker.yaml
index 7b9f9c0..0948cd0 100644 (file)
       become: true
       when: ansible_distribution == 'Ubuntu'
 
-    - name: Install python-tox
+    - name: Install python-tox and deps
       pip:
-        name: tox
+        name:
+          - tox
+          - tox-pyenv
+          - virtualenv
+          - more-itertools~=5.0.0
+          - zipp==1.0.0
         state: present
       become: true
 
@@ -74,7 +79,7 @@
 
     - name: Update and upgrade apt packages
       apt:
-        upgrade: yes
+        upgrade: 'yes'
         update_cache: yes
       become: true
       when: ansible_distribution == 'Ubuntu'
@@ -88,6 +93,7 @@
           - libssl-dev
           - libmysqlclient-dev
           - gcc
+          - python3-venv
       become: true
       when: ansible_distribution == 'Ubuntu'
 
       become: true
       when: ansible_distribution == 'Ubuntu'
 
-    - name: Install base packages
+    - name: Install nodejs-dev libssl1.0-dev dep
+      apt:
+        name:
+          - libssl1.0-dev
+        update_cache: yes
+        state: fixed
+      become: true
+      when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
+
+    - name: Install nodejs-dev dep for npm
+      apt:
+        name:
+          - nodejs-dev
+        update_cache: yes
+        state: fixed
+      become: true
+      when: ansible_distribution == 'Ubuntu'
+
+    - name: Install supporting packages
       apt:
         name:
           - unzip
           - libxml-xpath-perl
           - wget
           - make
-          - npm
           - sshuttle
           - netcat
           - libssl-dev
           - libffi-dev
-      become: true
-      when: ansible_distribution == 'Ubuntu'
-
-    - name: Install autorelease support packages
-      apt:
-        name:
           - xmlstarlet
           - xvfb
           - crudini
           - maven
           - python-ncclient
+          - xmlstarlet
+          - xvfb
+          - crudini
+          - maven
+          - python-ncclient
+        update_cache: yes
+        state: fixed
+      become: true
+      when: ansible_distribution == 'Ubuntu'
+
+    - name: Install npm and addon packages
+      apt:
+        name:
+          - nodejs
+          - npm
+          - node-gyp
+        update_cache: yes
+        state: fixed
       become: true
       when: ansible_distribution == 'Ubuntu'