New ansible apparently doesn't like these conditionals in the args.
This commit is contained in:
parent
3a687c7e6b
commit
7bb1b3d7ae
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue