Move these tasks over to the playbook instead of in roles includes
This commit is contained in:
parent
a8eba01a56
commit
9d612c0530
2 changed files with 21 additions and 19 deletions
|
@ -69,6 +69,27 @@
|
||||||
handlers:
|
handlers:
|
||||||
- include: "{{ handlers }}/restart_services.yml"
|
- include: "{{ handlers }}/restart_services.yml"
|
||||||
|
|
||||||
|
pre_tasks:
|
||||||
|
#
|
||||||
|
# When we have a prerelease we also need to drop the
|
||||||
|
# config files.
|
||||||
|
|
||||||
|
- name: Remove prerelease-to-final-spins
|
||||||
|
file: path=/etc/httpd/conf.d/spins.fedoraproject.org/prerelease-to-final-spins.conf state=absent
|
||||||
|
when: env == 'staging'
|
||||||
|
|
||||||
|
- name: Remove prerelease-to-final-labs
|
||||||
|
file: path=/etc/httpd/conf.d/labs.fedoraproject.org/prerelease-to-final-labs.conf state=absent
|
||||||
|
when: env == 'staging'
|
||||||
|
|
||||||
|
- name: Remove prerelease-to-final-gfo
|
||||||
|
file: path=/etc/httpd/conf.d/getfedora.org/prerelease-to-final-gfo.conf state=absent
|
||||||
|
when: env == 'staging'
|
||||||
|
|
||||||
|
- name: Remove prerelease-to-final-arm
|
||||||
|
file: path=/etc/httpd/conf.d/arm.fedoraproject.org/prerelease-to-final-gfo.conf state=absent
|
||||||
|
when: env == 'staging'
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- httpd/proxy
|
- httpd/proxy
|
||||||
- varnish
|
- varnish
|
||||||
|
|
|
@ -268,25 +268,6 @@
|
||||||
target: https://arm.stg.fedoraproject.org/$1
|
target: https://arm.stg.fedoraproject.org/$1
|
||||||
when: env == 'staging'
|
when: env == 'staging'
|
||||||
|
|
||||||
# When we have a prerelease we also need to drop the
|
|
||||||
# config files.
|
|
||||||
|
|
||||||
- name: Remove prerelease-to-final-spins
|
|
||||||
path: /etc/httpd/conf.d/spins.fedoraproject.org/prerelease-to-final-spins.conf state=absent
|
|
||||||
when: env == 'staging'
|
|
||||||
|
|
||||||
- name: Remove prerelease-to-final-labs
|
|
||||||
path: /etc/httpd/conf.d/labs.fedoraproject.org/prerelease-to-final-labs.conf state=absent
|
|
||||||
when: env == 'staging'
|
|
||||||
|
|
||||||
- name: Remove prerelease-to-final-gfo
|
|
||||||
path: /etc/httpd/conf.d/getfedora.org/prerelease-to-final-gfo.conf state=absent
|
|
||||||
when: env == 'staging'
|
|
||||||
|
|
||||||
- name: Remove prerelease-to-final-arm
|
|
||||||
path: /etc/httpd/conf.d/arm.fedoraproject.org/prerelease-to-final-gfo.conf state=absent
|
|
||||||
when: env == 'staging'
|
|
||||||
|
|
||||||
# end staging
|
# end staging
|
||||||
|
|
||||||
- role: httpd/redirectmatch
|
- role: httpd/redirectmatch
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue