Fix hosts field in rolling_update playbook when mds are processed

In the OSP context, during the rolling update the playbook fails
with the following error:

'''
ERROR! The field 'hosts' has an invalid value, which includes an
undefined variable. The error was: list object has no element 0
'''

This PR just change the hosts field providing a valid mons group
value.

Closes: https://bugzilla.redhat.com/1876803
Signed-off-by: Francesco Pantano <fpantano@redhat.com>
(cherry picked from commit e65f9a5c72)
pull/5759/head
Francesco Pantano 2020-09-08 13:16:33 +02:00 committed by Guillaume Abrioux
parent 2754895b89
commit 2691e385fb
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@
- name: upgrade ceph mdss cluster, deactivate all rank > 0 - name: upgrade ceph mdss cluster, deactivate all rank > 0
hosts: "{{ groups[mon_group_name|default('mons')][0] }}" hosts: "{{ mon_group_name | default('mons') }}[0]"
become: true become: true
tasks: tasks:
- name: deactivate all mds rank > 0 - name: deactivate all mds rank > 0