8168689caa
Shorten deployment time with: - Remove redundand roles if duplicated by a dependency and vice versa - When a member of k8s-cluster, always install docker as a dependency of the etcd role and drop the docker role from cluster.yaml. - Drop etcd and node role dependencies from master role as they are covered by the node role in k8s-cluster group as well. Copy defaults for master from node role. - Decouple master, node, secrets roles handlers and vars to be used w/o cross references. Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
10 lines
344 B
YAML
10 lines
344 B
YAML
---
|
|
dependencies:
|
|
- role: adduser
|
|
user: "{{ addusers.etcd }}"
|
|
when: ansible_os_family != 'CoreOS'
|
|
- role: download
|
|
file: "{{ downloads.etcd }}"
|
|
when: etcd_deployment_type == "host"
|
|
- role: docker
|
|
when: (ansible_os_family != "CoreOS" and etcd_deployment_type == "docker" or inventory_hostname in groups['k8s-cluster'])
|