diff options
author | Jan Chaloupka <jchaloup@redhat.com> | 2017-06-23 12:14:24 +0200 |
---|---|---|
committer | Jan Chaloupka <jchaloup@redhat.com> | 2017-06-28 13:46:55 +0200 |
commit | 2b521c8ae6c468fd2bb98362221483eced103696 (patch) | |
tree | 24c34c7cbfc39e91d510d87de9099f3f96fca759 /playbooks/common/openshift-cluster | |
parent | 002ceeb5bf17efe27880b1a17a342efabf9dbc30 (diff) | |
download | openshift-2b521c8ae6c468fd2bb98362221483eced103696.tar.gz openshift-2b521c8ae6c468fd2bb98362221483eced103696.tar.bz2 openshift-2b521c8ae6c468fd2bb98362221483eced103696.tar.xz openshift-2b521c8ae6c468fd2bb98362221483eced103696.zip |
attach leases via the first master only and only once
- move openshift-etcd/migrate.yml from byo to common and keep just the entry point
- replace std_include with essential plays (e.g. no need to detect openshift version)
- delegate the ttl re-attaching to the first master
Diffstat (limited to 'playbooks/common/openshift-cluster')
-rw-r--r-- | playbooks/common/openshift-cluster/evaluate_groups.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/evaluate_groups.yml b/playbooks/common/openshift-cluster/evaluate_groups.yml index c28ce4c14..baca72c58 100644 --- a/playbooks/common/openshift-cluster/evaluate_groups.yml +++ b/playbooks/common/openshift-cluster/evaluate_groups.yml @@ -157,3 +157,12 @@ ansible_become: "{{ g_sudo | default(omit) }}" with_items: "{{ g_glusterfs_hosts | union(g_glusterfs_registry_hosts | default([])) }}" changed_when: no + + - name: Evaluate oo_etcd_to_migrate + add_host: + name: "{{ item }}" + groups: oo_etcd_to_migrate + ansible_ssh_user: "{{ g_ssh_user | default(omit) }}" + ansible_become: "{{ g_sudo | default(omit) }}" + with_items: "{{ groups.oo_etcd_to_config if groups.oo_etcd_to_config | default([]) | length != 0 else groups.oo_first_master }}" + changed_when: no |