8725a1ee53
Add bool to use_upstream_docker conditional This is an ansible behavior change that's coming in 2.12 but is currently spewing warnings. The warnings make the log really hard to read, so just fix it. Disable group name auto-renaming If you have group names with non-python identifier characters, it prevents you from looking it up in jinja like "groups.group-name" so ansible auto-transforms it so you can do "groups.group_name". This is a confusing behavior which is going away. However, ansible is warning everyone who has groups with characters in them as it has no idea how you might be accessing those group names. Add a config setting to suppress the warning about -'s in group names. Change-Id: Ib3262025799af7c3171ed0b079cb1dd969075931
17 lines
378 B
YAML
17 lines
378 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
|