changing update...hosts.yaml to use region instead of host
This commit is contained in:
Родитель
5cf4024b51
Коммит
8cd061bce7
|
@ -5,6 +5,6 @@
|
|||
- lineinfile:
|
||||
dest: /etc/ansible/hosts
|
||||
insertafter: '[new_nodes]'
|
||||
line: "{{ lookup('env','INFRA') }} openshift_node_labels=\"{'type': 'infra', 'zone': 'default', 'region': 'infra'}\" openshift_hostname={{ lookup('env','INFRA') }}"
|
||||
line: "{{ lookup('env','INFRA') }} openshift_node_labels=\"{'region': 'infra', 'zone': 'default'}\" openshift_hostname={{ lookup('env','INFRA') }}"
|
||||
regexp: '^$INFRA '
|
||||
state: present
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
- lineinfile:
|
||||
dest: /etc/ansible/hosts
|
||||
insertafter: '[new_nodes]'
|
||||
line: "{{ lookup('env','NODE') }} openshift_node_labels=\"{'type': 'app', 'zone': 'default'}\" openshift_hostname={{ lookup('env','NODE') }}"
|
||||
line: "{{ lookup('env','NODE') }} openshift_node_labels=\"{'region': 'app', 'zone': 'default'}\" openshift_hostname={{ lookup('env','NODE') }}"
|
||||
regexp: '^{{ lookup('env','NODE') }} '
|
||||
state: present
|
||||
|
|
Загрузка…
Ссылка в новой задаче