main.yml 869 B

1234567891011121314151617181920212223242526272829303132333435
  1. - name: install pip on Debian
  2. block:
  3. - name: install pip using apt
  4. apt: name=python-pip state=present
  5. when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
  6. - name: install pip on Mac
  7. block:
  8. - name: create temporary folder
  9. file:
  10. path: ../../.tmp
  11. state: directory
  12. - name: get pip installer using curl
  13. get_url:
  14. url: https://bootstrap.pypa.io/get-pip.py
  15. dest: ../../.tmp/get-pip.py
  16. - name: install pip
  17. shell: python ../../.tmp/get-pip.py
  18. when: ansible_distribution == 'MacOSX'
  19. always:
  20. - name: remove pip installer script
  21. file:
  22. path: ../../.tmp/get-pip.py
  23. state: absent
  24. - name: install docker
  25. pip: name=docker
  26. - name: Install yarn with npm
  27. npm:
  28. name: yarn
  29. global: yes
  30. - name: Install docker compose
  31. pip: name=docker-compose