From a3f1177b5b247ce514a720d45abb54b96a645839 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Tue, 15 Dec 2015 23:03:53 +0000 Subject: [PATCH] Make hotspot.txt a specially deployed file This should make it more resilient to changes to the website Signed-off-by: Patrick Uiterwijk --- roles/fedora-web/main/files/hotspot.conf | 1 + roles/fedora-web/main/tasks/main.yml | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 roles/fedora-web/main/files/hotspot.conf diff --git a/roles/fedora-web/main/files/hotspot.conf b/roles/fedora-web/main/files/hotspot.conf new file mode 100644 index 0000000000..8a5222931d --- /dev/null +++ b/roles/fedora-web/main/files/hotspot.conf @@ -0,0 +1 @@ +Alias /static/hotspot.txt /srv/web/hotspot.txt diff --git a/roles/fedora-web/main/tasks/main.yml b/roles/fedora-web/main/tasks/main.yml index a4a4739fb0..93788387ff 100644 --- a/roles/fedora-web/main/tasks/main.yml +++ b/roles/fedora-web/main/tasks/main.yml @@ -13,6 +13,7 @@ - languages.conf - cache.conf - persona.conf + - hotspot.conf - expires.conf - deflate.conf notify: @@ -33,6 +34,14 @@ - fedora-web - fedora-web/main +- name: Create a file for hotspot + copy: dest=/srv/web/hotspot.txt content="OK" + owner=root group=root mode=0644 + setype=httpd_sys_content_t + tags: + - fedora-web + - fedora-web/main + - name: And, copy over a template for browserid template: > src=browserid.fedoraproject.org dest=/srv/web/browserid.fedoraproject.org