diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-06-28 08:07:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-28 08:07:55 -0400 |
commit | 646c4a93ed6405c80bc634fa64081950e1bf8e0a (patch) | |
tree | b241b89752dcca1c8482330876b4739a6588b54e /playbooks/common/openshift-cluster | |
parent | 2230e46276b004a1124dc06552a947b9023b8d4c (diff) | |
parent | 2b521c8ae6c468fd2bb98362221483eced103696 (diff) | |
download | openshift-646c4a93ed6405c80bc634fa64081950e1bf8e0a.tar.gz openshift-646c4a93ed6405c80bc634fa64081950e1bf8e0a.tar.bz2 openshift-646c4a93ed6405c80bc634fa64081950e1bf8e0a.tar.xz openshift-646c4a93ed6405c80bc634fa64081950e1bf8e0a.zip |
Merge pull request #4623 from ingvagabund/run-ttl-migration-only-one-on-the-first-master
attach leases via the first master only and only once
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 |