blob: cb080f99f3499cb2c9ff913e8ebab867358a4025 [file] [log] [blame]
Zsolt Harasztiec7df102016-05-05 13:34:18 -07001- name: Debian add Docker repository and update apt cache
2 apt_repository:
David K. Bainbridge31d08c22016-10-27 17:34:56 -07003 repo: deb https://apt.dockerproject.org/repo ubuntu-{{ debian_version }} main
Zsolt Harasztiec7df102016-05-05 13:34:18 -07004 update_cache: yes
5 state: present
6 tags: [docker]
7
8- name: Debian Docker is present
9 apt:
10 name: docker-engine
11 state: latest
12 force: yes
David K. Bainbridgef5ffb0d2016-11-04 16:14:54 +010013 tags: [docker, skip_ansible_lint]
Zsolt Harasztiec7df102016-05-05 13:34:18 -070014
15- name: Debian python-pip is present
16 apt: name=python-pip state=present
17 tags: [docker]
18
19- name: Debian docker-py is present
20 pip:
21 name: docker-py
22 version: 1.6.0
23 state: present
24 tags: [docker]
25
26- name: Debian files are present
27 template:
28 src: "{{ docker_cfg }}"
29 dest: "{{ docker_cfg_dest }}"
Zsolt Harasztiec7df102016-05-05 13:34:18 -070030 tags: [docker]
Zack Williamsdae7ff62016-11-14 15:20:06 -070031 notify:
32 - docker-restart
Zsolt Harasztiec7df102016-05-05 13:34:18 -070033
34- name: vagrant user is added to the docker group
35 user:
Andy Bavier3833dde2016-08-31 16:09:27 -040036 name: "{{ ansible_env['SUDO_USER'] }}"
Zsolt Harasztiec7df102016-05-05 13:34:18 -070037 group: docker
Zsolt Harasztiec7df102016-05-05 13:34:18 -070038 tags: [docker]
Zack Williamsdae7ff62016-11-14 15:20:06 -070039 notify:
40 - docker-restart
Zsolt Harasztiec7df102016-05-05 13:34:18 -070041