install-dependencies-playbook.yml 763 B

123456789101112131415161718192021222324252627282930
  1. - hosts: 127.0.0.1
  2. user: root
  3. become: yes
  4. become_method: sudo
  5. tasks:
  6. - name: install pip on Debian
  7. block:
  8. - name: install pip using apt
  9. apt: name=python-pip state=present
  10. when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
  11. - name: install pip on Mac
  12. block:
  13. - name: get pip installer using curl
  14. shell: curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
  15. - name: install pip
  16. shell: python get-pip.py
  17. when: ansible_distribution == 'MacOSX'
  18. - name: install docker
  19. pip: name=docker
  20. - name: Install yarn with npm
  21. npm:
  22. name: yarn
  23. global: yes
  24. - name: Install docker compose
  25. pip: name=docker-compose