blob: beda6802f3821b4243737499a9dad75945833612 [file] [log] [blame]
Matteo Scandolo60b640f2017-08-08 13:05:22 -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
Zsolt Harasztiec7df102016-05-05 13:34:18 -070017- name: CentOS files are copied
18 copy:
19 src: "{{ item.src }}"
20 dest: "{{ item.dest }}"
Scott Baker658f0212016-11-01 11:31:17 -070021 with_items: "{{ centos_files }}"
Zsolt Harasztiec7df102016-05-05 13:34:18 -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
32 tags: [docker]
David K. Bainbridgef5ffb0d2016-11-04 16:14:54 +010033 changed_when: true
Zsolt Harasztiec7df102016-05-05 13:34:18 -070034
35- name: CentOS service is running
36 service:
37 name: docker
38 state: running
39 tags: [docker]
40