Deploying without managed monitors failed

Tripleo deployment failed when the monitors not manged
by tripleo itself with:
    FAILED! => {"msg": "list object has no element 0"}

The failing play item was introduced by
 f46217b69a .

fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1552327

Signed-off-by: Attila Fazekas <afazekas@redhat.com>
pull/2499/head
Attila Fazekas 2018-04-04 15:30:55 +02:00 committed by Sébastien Han
parent dcf6a246a4
commit ecd3563c21
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@
delegate_to: "{{ groups[mon_group_name][0] }}"
when:
- containerized_deployment
- groups.get(mon_group_name, []) | length > 0
# this task shouldn't run in a rolling_update situation
# because it blindly picks a mon, which may be down because