Revert "Make ansible use infrastructure-testing whenever we run on staging"
This reverts commit 1dbb5fdfe7
.
This commit is contained in:
parent
1dbb5fdfe7
commit
32be316aee
1 changed files with 7 additions and 4 deletions
|
@ -10,11 +10,14 @@
|
|||
hosts: "{{ target }}"
|
||||
user: root
|
||||
|
||||
vars:
|
||||
testing: False
|
||||
|
||||
tasks:
|
||||
|
||||
- name: clean all metadata {% if env == 'staging' %}(with infrastructure-testing on){% endif %}
|
||||
command: yum clean all {% if env == 'staging' %} --enablerepo=infrastructure-testing {% endif %}
|
||||
- name: clean all metadata {% if testing %}(with infrastructure-testing on){% endif %}
|
||||
command: yum clean all {% if testing %} --enablerepo=infrastructure-testing {% endif %}
|
||||
always_run: yes
|
||||
|
||||
- name: yum update {{ package }} {% if env == 'staging' %}(with infrastructure-testing on){% endif %}
|
||||
yum: name={{ package }} state=latest {% if env == 'staging' %}enablerepo=infrastructure-testing{% endif %}
|
||||
- name: yum update {{ package }} {% if testing %}(with infrastructure-testing on){% endif %}
|
||||
yum: name={{ package }} state=latest {% if testing %}enablerepo=infrastructure-testing{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue