]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
downstream_setup: Dynamically evaluate when statements in main.yml 291/head
authorDavid Galloway <dgallowa@redhat.com>
Wed, 16 Nov 2016 20:34:25 +0000 (15:34 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 16 Nov 2016 23:28:12 +0000 (18:28 -0500)
See https://github.com/ansible/ansible/issues/18483

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/downstream-setup/tasks/main.yml

index 31b67c8dc1433aed2219b1d45b74692b4eaa4491..b01338a4a71f41cc3e3a3720b0c06382358325e1 100644 (file)
@@ -1,9 +1,13 @@
 ---
+# re: 'static: no' -- See https://github.com/ansible/ansible/issues/18483
+# Can be removed once that fix makes it into Ansible
+
 # These are tasks which perform actions corresponding to the names of
 # the variables they use.  For example, `disable_yum_repos` would actually
 # disable all repos defined in that list.
 - include: setup.yml
   when: not cleanup and (ansible_distribution == "CentOS" or ansible_distribution == "RedHat")
+  static: no
 
 # These are tasks which reverse the actions corresponding to the names of
 # the variables they use. For example, `disable_yum_repos` would actually
@@ -12,3 +16,4 @@
 # for the test run but then re-enable them during the teuthology cleanup process.
 - include: cleanup.yml
   when: cleanup and (ansible_distribution == "CentOS" or ansible_distribution == "RedHat")
+  static: no