Ryan Tidwell | 2201953 | 2019-04-12 10:23:47 -0500 | [diff] [blame] | 1 | - name: Install and configure docker |
| 2 | become: yes |
| 3 | package: |
| 4 | name: docker.io |
| 5 | state: present |
| 6 | |
| 7 | - name: Copy 52_docker_for_tempest to /etc/sudoers.d |
| 8 | copy: |
| 9 | src: 52_docker_for_tempest |
| 10 | dest: /etc/sudoers.d |
| 11 | owner: root |
| 12 | group: root |
| 13 | mode: 0440 |
| 14 | become: yes |
| 15 | |
| 16 | - name: Copy docker_apparmor to /etc/apparmor.d |
| 17 | copy: |
| 18 | src: docker_apparmor |
| 19 | dest: /etc/apparmor.d |
| 20 | owner: root |
| 21 | group: root |
| 22 | mode: 0640 |
| 23 | become: yes |
| 24 | |
| 25 | - name: Ensure apparmor is restarted |
| 26 | become: yes |
| 27 | service: |
| 28 | name: apparmor |
| 29 | state: restarted |
| 30 | ignore_errors: yes |
| 31 | |
| 32 | - name: Ensure docker engine is restarted |
| 33 | become: yes |
| 34 | service: |
| 35 | name: docker |
| 36 | state: restarted |