Jonathan Hart | 93956f5 | 2017-08-22 13:12:42 -0700 | [diff] [blame^] | 1 | |
| 2 | # Copyright 2017-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 17 | - name: CentOS files are copied |
| 18 | copy: |
| 19 | src: "{{ item.src }}" |
| 20 | dest: "{{ item.dest }}" |
David K. Bainbridge | 17248c0 | 2016-08-29 17:04:34 -0700 | [diff] [blame] | 21 | with_items: "{{ centos_files }}" |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 22 | tags: [docker] |
| 23 | |
| 24 | - name: CentOS package is installed |
| 25 | yum: |
| 26 | name: docker-engine |
| 27 | state: present |
| 28 | tags: [docker] |
| 29 | |
| 30 | - name: CentOS Daemon is reloaded |
| 31 | command: systemctl daemon-reload |
David K. Bainbridge | 17248c0 | 2016-08-29 17:04:34 -0700 | [diff] [blame] | 32 | changed_when: true |
David K. Bainbridge | b541504 | 2016-05-13 17:06:10 -0700 | [diff] [blame] | 33 | tags: [docker] |
| 34 | |
| 35 | - name: CentOS service is running |
| 36 | service: |
| 37 | name: docker |
| 38 | state: running |
| 39 | tags: [docker] |
| 40 | |