aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/common/tasks/main.yml
blob: dcffc7b8be7db7b9e184a0aa1308b4a8c2fd970e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
- name: install docker
  sudo: true
  # install script from https://docs.docker.com/installation/ubuntulinux/
  shell: curl -sSL https://get.docker.com/ubuntu/ | sudo sh  

- name: install package dependencies
  sudo: true
  apt: name={{ item }}
  with_items:
      - python-pip

- name: install python dependencies
  sudo: true
  pip: name=docker-py


- name: enable docker for standard user
  sudo: true
  # todo: how to logout after this command, otherwise won't be effective in this play
  user: name=vagrant groups=docker append=yes

- name: checkout test repo
  git:
      repo: https://github.com/sveneh/tests.git 
      version: develop
      dest: git