]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
downstream-setup: use 'cleanup' instead of 'teardown' 51/head
authorAndrew Schoen <aschoen@redhat.com>
Thu, 18 Jun 2015 20:13:45 +0000 (15:13 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 18 Jun 2015 20:13:45 +0000 (15:13 -0500)
We want this change because using 'teardown' within teuthology was
confusing because we already have a method called 'teardown' on
class-based tasks.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/downstream-setup/defaults/main.yml
roles/downstream-setup/tasks/main.yml

index 15647c7618cc39802e0ed0b227bda9034e97c022..3c5390b8e56299e75dd95480b8cc6398ca644361 100644 (file)
@@ -1,7 +1,7 @@
 ---
-# When teardown is true the tasks being used might
-# perform teardown steps if applicable.
-teardown: false
+# When cleanup is true the tasks being used might
+# perform cleanup steps if applicable.
+cleanup: false
 
 
 # yum_repos is a list of hashes that
@@ -13,7 +13,7 @@ teardown: false
 #     - url: "http://path/to/epel.repo"
 #       name: "epel"
 #
-# When using the yum_repos var and if teardown is true it will
+# When using the yum_repos var and if cleanup is true it will
 # delete the repos instead of creating them.
 yum_repos: []
 
index d194da903805c1a415cf14bb0418343121c0cd6f..95b278bab9538e6280233d232c6f9ecd6e044151 100644 (file)
@@ -1,15 +1,15 @@
 ---
 - include: yum_repos.yml
   when: yum_repos|length > 0 and
-        not teardown
+        not cleanup
   tags:
     - yum-repos
 
-- name: Set remove_yum_repos on teardown
+- name: Set remove_yum_repos on cleanup
   set_fact:
     remove_yum_repos: "[{% for repo in yum_repos %}'{{ repo.name}}',{% endfor %}]"
   when: yum_repos|length > 0 and
-        teardown and
+        cleanup and
         remove_yum_repos|length == 0
 
 - include: remove_yum_repos.yml