12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- - name: install pip and npm on Debian
- block:
- - name: create temporary folder
- file:
- path: ../../.tmp
- state: directory
- - name: install pip using apt
- apt: name=python-pip state=present
- - name: install npm using apt
- apt: name=npm state=present
- when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
- - name: install pip on Mac
- block:
- - name: create temporary folder
- file:
- path: ../../.tmp
- state: directory
- - name: get pip installer using curl
- get_url:
- url: https://bootstrap.pypa.io/get-pip.py
- dest: ../../.tmp/get-pip.py
- - name: install pip
- shell: python ../../.tmp/get-pip.py
- when: ansible_distribution == 'MacOSX'
- always:
- - name: remove pip installer script
- file:
- path: ../../.tmp/get-pip.py
- state: absent
- - name: install docker
- pip: name=docker
- - name: Install yarn with npm
- npm:
- name: yarn
- global: yes
- - name: Install pyrsistent
- pip:
- name: pyrsistent==0.16.0
- - name: Install docker compose
- pip:
- name: docker-compose==1.26.2
|