]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Add defaults for ceph_stable_ice_tmp_path and ceph_stable_ice_kmod 501/head
authorAndrew Schoen <aschoen@redhat.com>
Thu, 28 Jan 2016 17:40:18 +0000 (11:40 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 28 Jan 2016 17:40:18 +0000 (11:40 -0600)
It seems that in ansible 2.0 even if a task is skipped by it's `when`
clause not evaluating to true the variables in the play are still
rendered. Because these were not defined in defaults/main.yml ansible
was failing in installs/install_on_redhat where those variables are
being used in a `with_items` stanza.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/ceph-common/defaults/main.yml

index e1e0d31d0678d5dc00398535036b86f0e83af72f..fb31aa8365876a4599907c8d83fd0b54fb7544ff 100644 (file)
@@ -86,8 +86,11 @@ ceph_stable_redhat_distro: el7
 # ENTERPRISE VERSION ICE (old, prior to the 1.3)\r
 ceph_stable_ice: false # use Inktank Ceph Enterprise\r
 #ceph_stable_ice_url: https://download.inktank.com/enterprise\r
-#ceph_stable_ice_temp_path: /opt/ICE/ceph-repo/\r
-#ceph_stable_ice_kmod: 3.10-0.1.20140702gitdc9ac62.el7.x86_64\r
+# these two variables are used in `with_items` and starting
+# with ansible 2.0 these need to be defined even if the tasks's
+# `when` clause doesn't evaluate to true
+ceph_stable_ice_temp_path: /opt/ICE/ceph-repo/
+ceph_stable_ice_kmod: 3.10-0.1.20140702gitdc9ac62.el7.x86_64
 #ceph_stable_ice_distro: rhel7 # Please check the download website for the supported versions.\r
 #ceph_stable_ice_version: 1.2.2\r
 #ceph_stable_ice_kmod_version: 1.2\r