David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 1 | - name: CentOS files are copied |
| 2 | copy: |
| 3 | src: "{{ item.src }}" |
| 4 | dest: "{{ item.dest }}" |
David K. Bainbridge | 17248c0 | 2016-08-29 17:04:34 -0700 | [diff] [blame^] | 5 | with_items: "{{ centos_files }}" |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -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 |
David K. Bainbridge | 17248c0 | 2016-08-29 17:04:34 -0700 | [diff] [blame^] | 16 | changed_when: true |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 17 | tags: [docker] |
| 18 | |
| 19 | - name: CentOS service is running |
| 20 | service: |
| 21 | name: docker |
| 22 | state: running |
| 23 | tags: [docker] |
| 24 | |