From: Loic Dachary Date: Fri, 25 Mar 2016 17:08:21 +0000 (+0100) Subject: paddles: cope with undefined paddles_address X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F219%2Fhead;p=ceph-cm-ansible.git paddles: cope with undefined paddles_address Signed-off-by: Thierry Delamare Signed-off-by: Loic Dachary --- diff --git a/roles/paddles/tasks/main.yml b/roles/paddles/tasks/main.yml index d4476e59..68255c47 100644 --- a/roles/paddles/tasks/main.yml +++ b/roles/paddles/tasks/main.yml @@ -14,7 +14,7 @@ - name: Set paddles_address set_fact: paddles_address: http://{{ ansible_hostname }}/ - when: not paddles_address.startswith('http') + when: paddles_address is not defined or not paddles_address.startswith('http') tags: - always