Browse Source

altered playbook to use file module insted of shell

Gleb Urvanov 4 years ago
parent
commit
0b339d7131
1 changed files with 6 additions and 2 deletions
  1. 6 2
      devops/ansible/install-dependencies-playbook.yml

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

@@ -13,7 +13,9 @@
     - name: install pip on Mac
       block:
         - name: create temporary folder
-          shell: mkdir -p ../../.tmp
+          file:
+            path: ../../.tmp
+            state: directory
         - name: get pip installer using curl
           get_url: 
             url: https://bootstrap.pypa.io/get-pip.py
@@ -23,7 +25,9 @@
       when: ansible_distribution == 'MacOSX'
       always: 
         - name: remove pip installer script
-          shell: rm ../../.tmp/get-pip.py
+          file: 
+            path: ../../.tmp/get-pip.py
+            state: absent
 
     - name: install docker
       pip: name=docker