From ae876baf0120bfecec6aae4c762ed668fea658af Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mon, 12 Jan 2015 16:20:35 +0100 Subject: [PATCH] Adjust the title for the yum clean all action --- playbooks/manual/update-packages.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/playbooks/manual/update-packages.yml b/playbooks/manual/update-packages.yml index b9382849f0..3f44de94bc 100644 --- a/playbooks/manual/update-packages.yml +++ b/playbooks/manual/update-packages.yml @@ -15,9 +15,15 @@ tasks: - - name: clean all metadata {%if testing%}(with infrastructure-testing on){%endif%} - command: yum clean all {%if testing%} --enablerepo=infrastructure-testing {%endif%} + - name: clean all metadata + command: yum clean all always_run: yes + when: not testing + + - name: clean all metadata (w/ infrastructure-testing enabled) + command: yum clean all --enablerepo=infrastructure-testing + always_run: yes + when: testing - name: yum update {{ package }} from main repo yum: name="{{ package }}" state=latest