]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
paddles: cope with undefined paddles_address 219/head
authorLoic Dachary <loic@dachary.org>
Fri, 25 Mar 2016 17:08:21 +0000 (18:08 +0100)
committerLoic Dachary <loic@dachary.org>
Fri, 25 Mar 2016 17:09:27 +0000 (18:09 +0100)
Signed-off-by: Thierry Delamare <t.delamare@laposte.net>
Signed-off-by: Loic Dachary <loic@dachary.org>
roles/paddles/tasks/main.yml

index d4476e59c025c2b64f7f5b6eb9a3d1826670d5d8..68255c474f229cad004226e31c003f196d822f3d 100644 (file)
@@ -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