summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-master/scaleup.yml
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2016-02-11 15:23:43 -0500
committerAndrew Butcher <abutcher@redhat.com>2016-02-16 14:21:09 -0500
commit5dd58c31d6e3b9254c8d90c7138a62e1d39e2f5f (patch)
treeaf9a4cf709e07917d1fc95b5fd23178df1d5e339 /playbooks/common/openshift-master/scaleup.yml
parent16e1f777e1df9371c4570aed149b29bd4cdc1a6f (diff)
downloadopenshift-5dd58c31d6e3b9254c8d90c7138a62e1d39e2f5f.tar.gz
openshift-5dd58c31d6e3b9254c8d90c7138a62e1d39e2f5f.tar.bz2
openshift-5dd58c31d6e3b9254c8d90c7138a62e1d39e2f5f.tar.xz
openshift-5dd58c31d6e3b9254c8d90c7138a62e1d39e2f5f.zip
Add modify_yaml module.
Diffstat (limited to 'playbooks/common/openshift-master/scaleup.yml')
-rw-r--r--playbooks/common/openshift-master/scaleup.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/playbooks/common/openshift-master/scaleup.yml b/playbooks/common/openshift-master/scaleup.yml
index 36b121d1c..52727bc03 100644
--- a/playbooks/common/openshift-master/scaleup.yml
+++ b/playbooks/common/openshift-master/scaleup.yml
@@ -30,10 +30,10 @@
ha: "{{ openshift_master_ha | default(groups.oo_masters | length > 1) }}"
master_count: "{{ openshift_master_count | default(groups.oo_masters | length) }}"
- name: Update master count
- lineinfile:
+ modify_yaml:
dest: "{{ openshift.common.config_base}}/master/master-config.yaml"
- regexp: '^ masterCount:.*$'
- line: " masterCount: {{ openshift.master.master_count }}"
+ yaml_key: 'kubernetesMasterConfig.masterCount'
+ yaml_value: "{{ openshift.master.master_count }}"
notify:
- restart master api
- restart master controllers