1 ############################################################################
2 # Copyright (c) 2016 The Linux Foundation and others.
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7 #############################################################################
13 msg: "{{ inventory_hostname }} is {{ ansible_distribution }}"
14 - include_vars: vars/defaults.yml
15 - include: vars/CentOS.yml
16 when: ansible_distribution == "CentOS"
17 - include: vars/Ubuntu.yml
18 when: ansible_distribution == "Ubuntu"
19 - name: Install Docker.
20 package: name={{ docker_package }} state={{ docker_package_state }}
21 - name: Ensure Docker is started and enabled at boot.
26 - name: install gsutil
34 - include: vars/docker-compose-CentOS.yml
35 when: ansible_distribution == "CentOS"
36 - include: vars/docker-compose-Ubuntu.yml
37 when: ansible_distribution == "Ubuntu"