Gleb Urvanov %!s(int64=4) %!d(string=hai) anos
pai
achega
b02a7cc3ab

+ 2 - 2
devops/ansible/build-and-run-tests-single-node-playbook.yml

@@ -8,5 +8,5 @@
   tasks:
     - name: build node
       include: build-image-tasklist.yml
-- name: run tests
-  import_playbook: run-tests-single-node-playbook.yml
+# - name: run tests
+#   import_playbook: run-tests-single-node-playbook.yml

+ 17 - 2
devops/ansible/install-dependencies-playbook.yml

@@ -3,13 +3,28 @@
   become: yes
   become_method: sudo
   tasks:
-    - name: install pip
-      apt: name=python-pip state=present
+
+    - name: install pip on Debian
+      block:
+        - name: install pip using apt
+          apt: name=python-pip state=present
+      when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
+
+    - name: install pip on Mac
+      block:
+        - name: get pip installer using curl
+          shell: curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
+        - name: install pip
+          shell: python get-pip.py
+      when: ansible_distribution == 'MacOSX'
+
     - name: install docker
       pip: name=docker
+
     - name: Install yarn with npm
       npm:
         name: yarn
         global: yes
+
     - name: Install docker compose
       pip: name=docker-compose