From ecd3563c2128553d4145a2f9c940ff31458c33b4 Mon Sep 17 00:00:00 2001 From: Attila Fazekas Date: Wed, 4 Apr 2018 15:30:55 +0200 Subject: [PATCH] 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 f46217b69ae18317cb0c1cc3e391a0bca5767eb6 . fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1552327 Signed-off-by: Attila Fazekas --- roles/ceph-defaults/tasks/facts.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/ceph-defaults/tasks/facts.yml b/roles/ceph-defaults/tasks/facts.yml index 248493029..936e4a7ca 100644 --- a/roles/ceph-defaults/tasks/facts.yml +++ b/roles/ceph-defaults/tasks/facts.yml @@ -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