]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
sites: fix conditonnal
authorSébastien Han <seb@redhat.com>
Mon, 27 Aug 2018 17:20:32 +0000 (10:20 -0700)
committerSébastien Han <seb@redhat.com>
Mon, 27 Aug 2018 20:11:15 +0000 (22:11 +0200)
Same problem again... ceph_release_num[ceph_release] is only set in
ceph-docker-common/common roles so putting the condition on that role
will never work. Removing the condition.

The downside of this is we will be installing packages and then skip the
role on the node.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1622210
Signed-off-by: Sébastien Han <seb@redhat.com>
site-docker.yml.sample
site.yml.sample

index 50af3b46dab158322fc5f4469672a3b9ae80b170..cedd8cbaf8fdaa45a45d3fe7a2be37f531b57ca5 100644 (file)
             start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
   roles:
     - { role: ceph-defaults, tags: ['ceph_update_config'] }
-    - { role: ceph-docker-common, when: "ceph_release_num[ceph_release] >= ceph_release_num.luminous" }
+    - { role: ceph-docker-common }
     - { role: ceph-config, tags: ['ceph_update_config'], when: "ceph_release_num[ceph_release] >= ceph_release_num.luminous" }
     - { role: ceph-iscsi-gw, when: "ceph_release_num[ceph_release] >= ceph_release_num.luminous" }
   post_tasks:
index fdba38d93e899c0cb94ce31dc3a0fe62ad94b64b..3ab96a49ce7da2042de23d8c1fa24b19ff5b1e79 100644 (file)
     - role: ceph-defaults
       tags: ['ceph_update_config']
     - role: ceph-common
-      when:
-        - ceph_release_num[ceph_release] >= ceph_release_num.luminous
     - role: ceph-config
       tags: ['ceph_update_config']
       when: