Zsolt Haraszti | ec7df10 | 2016-05-05 13:34:18 -0700 | [diff] [blame] | 1 | - name: Debian add Docker repository and update apt cache |
| 2 | apt_repository: |
David K. Bainbridge | 31d08c2 | 2016-10-27 17:34:56 -0700 | [diff] [blame] | 3 | repo: deb https://apt.dockerproject.org/repo ubuntu-{{ debian_version }} main |
Zsolt Haraszti | ec7df10 | 2016-05-05 13:34:18 -0700 | [diff] [blame] | 4 | 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. Bainbridge | f5ffb0d | 2016-11-04 16:14:54 +0100 | [diff] [blame] | 13 | tags: [docker, skip_ansible_lint] |
Zsolt Haraszti | ec7df10 | 2016-05-05 13:34:18 -0700 | [diff] [blame] | 14 | |
| 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 Haraszti | ec7df10 | 2016-05-05 13:34:18 -0700 | [diff] [blame] | 30 | tags: [docker] |
Zack Williams | dae7ff6 | 2016-11-14 15:20:06 -0700 | [diff] [blame] | 31 | notify: |
| 32 | - docker-restart |
Zsolt Haraszti | ec7df10 | 2016-05-05 13:34:18 -0700 | [diff] [blame] | 33 | |
| 34 | - name: vagrant user is added to the docker group |
| 35 | user: |
Andy Bavier | 3833dde | 2016-08-31 16:09:27 -0400 | [diff] [blame] | 36 | name: "{{ ansible_env['SUDO_USER'] }}" |
Zsolt Haraszti | ec7df10 | 2016-05-05 13:34:18 -0700 | [diff] [blame] | 37 | group: docker |
Zsolt Haraszti | ec7df10 | 2016-05-05 13:34:18 -0700 | [diff] [blame] | 38 | tags: [docker] |
Zack Williams | dae7ff6 | 2016-11-14 15:20:06 -0700 | [diff] [blame] | 39 | notify: |
| 40 | - docker-restart |
Zsolt Haraszti | ec7df10 | 2016-05-05 13:34:18 -0700 | [diff] [blame] | 41 | |