File tree Expand file tree Collapse file tree 6 files changed +10
-0
lines changed Expand file tree Collapse file tree 6 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 17
17
- name : Group hosts to determine when using --limit
18
18
group_by :
19
19
key : " all_using_limit_{{ (ansible_play_batch | length) != (groups['all'] | length) }}"
20
+ changed_when : false
20
21
tags : always
21
22
22
23
# NOTE(pbourke): This case covers deploying subsets of hosts using --limit. The
Original file line number Diff line number Diff line change 24
24
re_safe_address : " {{ kolla_internal_vip_address | regex_escape }}"
25
25
group_by :
26
26
key : kolla_ha_is_master_{{ ip_addr_output.stdout is regex('\b' + re_safe_address + '\b') }}
27
+ changed_when : false
27
28
when :
28
29
- kolla_action != "config"
29
30
listen :
Original file line number Diff line number Diff line change 16
16
- name : Group hosts by whether they are running keepalived
17
17
group_by :
18
18
key : " keepalived_running_{{ container_facts['keepalived'] is defined }}"
19
+ changed_when : false
19
20
when :
20
21
- enable_keepalived | bool
21
22
- inventory_hostname in groups['haproxy']
22
23
23
24
- name : Group hosts by whether they are running HAProxy
24
25
group_by :
25
26
key : " haproxy_running_{{ container_facts['haproxy'] is defined }}"
27
+ changed_when : false
26
28
when :
27
29
- enable_haproxy | bool
28
30
- inventory_hostname in groups['haproxy']
Original file line number Diff line number Diff line change 14
14
- name : Group nodes where keystone_fernet is running
15
15
group_by :
16
16
key : keystone_fernet_{{ container_facts['keystone_fernet'].State | default('bootstrap') }}
17
+ changed_when : false
17
18
18
19
# NOTE(mgoddard): If we bootstrap Fernet keys on an existing cluster, this
19
20
# would overwrite existing keys, and invalidate tokens created from them.
Original file line number Diff line number Diff line change 10
10
- name : Divide hosts by their MariaDB volume availability
11
11
group_by :
12
12
key : mariadb_had_volume_{{ mariadb_volume is not changed }}
13
+ changed_when : false
13
14
14
15
- name : Establish whether the cluster has already existed
15
16
set_fact :
29
30
- name : Divide hosts by their MariaDB service port liveness
30
31
group_by :
31
32
key : mariadb_port_alive_{{ check_mariadb_port_liveness is success }}
33
+ changed_when : false
32
34
33
35
- name : Fail on existing but stopped cluster
34
36
fail :
64
66
- name : Divide hosts by their MariaDB service WSREP sync status
65
67
group_by :
66
68
key : mariadb_sync_status_{{ mariadb_sync_status | default('NA') }}
69
+ changed_when : false
67
70
68
71
- name : Fail when MariaDB services are not synced across the whole cluster
69
72
fail :
Original file line number Diff line number Diff line change 11
11
- name : Group hosts based on Kolla action
12
12
group_by :
13
13
key : " kolla_action_{{ kolla_action }}"
14
+ changed_when : false
14
15
15
16
- name : Group hosts based on enabled services
16
17
group_by :
17
18
key : " {{ item }}"
19
+ changed_when : false
18
20
with_items :
19
21
- enable_aodh_{{ enable_aodh | bool }}
20
22
- enable_barbican_{{ enable_barbican | bool }}
You can’t perform that action at this time.
0 commit comments