From: Andrew Schoen Date: Wed, 9 Sep 2015 15:07:45 +0000 (-0500) Subject: downstream-setup: yum_repos will now be removed during cleanup X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5a72202e57a3d042021d99ae2c2f3ad7d694b3f3;p=ceph-cm-ansible.git downstream-setup: yum_repos will now be removed during cleanup Fixes: http://tracker.ceph.com/issues/12921 Signed-off-by: Andrew Schoen --- diff --git a/roles/downstream-setup/tasks/cleanup.yml b/roles/downstream-setup/tasks/cleanup.yml index 3807d6c..9a1d198 100644 --- a/roles/downstream-setup/tasks/cleanup.yml +++ b/roles/downstream-setup/tasks/cleanup.yml @@ -8,10 +8,13 @@ tags: - yum-repos +- set_fact: + repos_to_remove: "{% for repo in yum_repos%}{{ repo.name }}{% if not loop.last %},{% endif %}{% endfor %}" + - include: remove_yum_repos.yml when: yum_repos|length > 0 vars: - repos: "{{ yum_repos }}" + repos: "{{ repos_to_remove.split(',') }}" tags: - delete-yum-repos