Zsolt Haraszti | ec7df10 | 2016-05-05 13:34:18 -0700 | [diff] [blame] | 1 | - name: CentOS files are copied |
| 2 | copy: |
| 3 | src: "{{ item.src }}" |
| 4 | dest: "{{ item.dest }}" |
Scott Baker | 658f021 | 2016-11-01 11:31:17 -0700 | [diff] [blame] | 5 | with_items: "{{ centos_files }}" |
Zsolt Haraszti | ec7df10 | 2016-05-05 13:34:18 -0700 | [diff] [blame] | 6 | tags: [docker] |
| 7 | |
| 8 | - name: CentOS package is installed |
| 9 | yum: |
| 10 | name: docker-engine |
| 11 | state: present |
| 12 | tags: [docker] |
| 13 | |
| 14 | - name: CentOS Daemon is reloaded |
| 15 | command: systemctl daemon-reload |
| 16 | tags: [docker] |
David K. Bainbridge | f5ffb0d | 2016-11-04 16:14:54 +0100 | [diff] [blame] | 17 | changed_when: true |
Zsolt Haraszti | ec7df10 | 2016-05-05 13:34:18 -0700 | [diff] [blame] | 18 | |
| 19 | - name: CentOS service is running |
| 20 | service: |
| 21 | name: docker |
| 22 | state: running |
| 23 | tags: [docker] |
| 24 | |