From 7bb1b3d7aefc581e28b8c3b7cde7ec75eaa03588 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Wed, 6 Aug 2014 08:19:11 +0000 Subject: [PATCH] New ansible apparently doesn't like these conditionals in the args. --- playbooks/update_packages.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/playbooks/update_packages.yml b/playbooks/update_packages.yml index 1aed1c6d73..b9382849f0 100644 --- a/playbooks/update_packages.yml +++ b/playbooks/update_packages.yml @@ -19,5 +19,10 @@ command: yum clean all {%if testing%} --enablerepo=infrastructure-testing {%endif%} always_run: yes - - name: yum update {{package}} {%if testing%}(with infrastructure-testing on){%endif%} - yum: name={{package}} state=latest {%if testing%}enablerepo=infrastructure-testing{%endif%} + - name: yum update {{ package }} from main repo + yum: name="{{ package }}" state=latest + when: not testing + + - name: yum update {{ package }} from testing repo + yum: name="{{ package }}" state=latest enablerepo=infrastructure-testing + when: testing