5141306c71
The zookeeper role can use the default pip installed docker-compose now. We can also stop ensuring the distro package is removed as this has run on all hosts at this point. Change-Id: Ia034ae7d2c8e38494050698e1bfac0cc273dd200
29 lines
627 B
YAML
29 lines
627 B
YAML
- name: Create docker directory
|
|
become: yes
|
|
file:
|
|
state: directory
|
|
path: /etc/docker
|
|
|
|
- name: Install docker-ce from upstream
|
|
include: upstream.yaml
|
|
when: use_upstream_docker|bool
|
|
|
|
- name: Install docker-engine from distro
|
|
include: distro.yaml
|
|
when: not use_upstream_docker|bool
|
|
|
|
- name: reset ssh connection to pick up docker group
|
|
meta: reset_connection
|
|
|
|
# We install docker-compose from pypi to get features like
|
|
# stop_grace_period.
|
|
- name: ensure pip3 is installed
|
|
include_role:
|
|
name: pip3
|
|
|
|
- name: Install docker-compose
|
|
pip:
|
|
name: docker-compose
|
|
state: present
|
|
executable: pip3
|