main.yml 1.1 KB

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