blob: 317cc540b836744eaa38efb2519b2bed263fbf89 [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
Zack Williams58ace172018-01-31 18:38:58 -070031 systemd:
32 daemon_reload: yes
David K. Bainbridge17248c02016-08-29 17:04:34 -070033 changed_when: true
David K. Bainbridgeb5415042016-05-13 17:06:10 -070034 tags: [docker]
35
36- name: CentOS service is running
37 service:
38 name: docker
39 state: running
40 tags: [docker]
41