blob: 2be601b01fd76d276a703be20d415c401fce8a10 [file] [log] [blame]
Jonathan Hart93956f52017-08-22 13:12:42 -07001
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. Bainbridgeb5415042016-05-13 17:06:10 -070017- name: CentOS files are copied
18 copy:
19 src: "{{ item.src }}"
20 dest: "{{ item.dest }}"
David K. Bainbridge17248c02016-08-29 17:04:34 -070021 with_items: "{{ centos_files }}"
David K. Bainbridgeb5415042016-05-13 17:06:10 -070022 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. Bainbridge17248c02016-08-29 17:04:34 -070032 changed_when: true
David K. Bainbridgeb5415042016-05-13 17:06:10 -070033 tags: [docker]
34
35- name: CentOS service is running
36 service:
37 name: docker
38 state: running
39 tags: [docker]
40