1fbd156697
We have decided to decommision the ask.openstack.org server as it is running EOL Xenial, and its manually purchased certiface is about to expire. Although it has been deprecated for some time, we feel like it has been around long-enough as a resource that it is best if we replace it with a place-holder. The links included here are the same as the currently shown header explaining the site is read-only. There's nowhere particularly relevant to redirect the site, so we add a static file here, and some minimal Ansible to put it in the right place in a generic way in-case we want to do the same for another service. Change-Id: I8a31f8fcf9b3064c0ae58e463a6014dc14b518a7
21 lines
500 B
YAML
21 lines
500 B
YAML
- name: Check for deployment tasks
|
|
include_tasks: "{{ _dt }}"
|
|
when: _dt != ""
|
|
vars:
|
|
_dt: "{{ lookup('first_found', dict(files=[config+'.yaml']), errors='ignore') }}"
|
|
|
|
- name: Add {{ config }} configuration
|
|
copy:
|
|
src: '{{ config }}.conf'
|
|
dest: /etc/apache2/sites-available/
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
|
|
- name: 'Enable {{ config }}'
|
|
command: 'a2ensite {{ config }}'
|
|
args:
|
|
creates: '/etc/apache2/sites-enabled/{{ config }}'
|
|
notify:
|
|
- Reload apache2
|