From 6fe0f9221ee5b2b8b3be019aed32b5264111099f Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Tue, 17 Oct 2023 11:58:03 -0400 Subject: add live role --- roles/live/tasks/main.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 roles/live/tasks/main.yml (limited to 'roles/live/tasks') diff --git a/roles/live/tasks/main.yml b/roles/live/tasks/main.yml new file mode 100644 index 0000000..3e51765 --- /dev/null +++ b/roles/live/tasks/main.yml @@ -0,0 +1,23 @@ +- name: Create the directory for this year + file: + path: /var/www/live.emacsconf.org/{{ item }} + owner: "{{ emacsconf_user }}" + group: "{{ emacsconf_user }}" + state: directory + loop: + - "{{ emacsconf_year }}" + - "{{ emacsconf_year }}/watch" +- name: Configure Nginx + template: + src: live.emacsconf.org.conf + dest: /etc/nginx/sites-available/live.emacsconf.org +- name: Make sure main configuration is enabled + file: + src: /etc/nginx/sites-available/live.emacsconf.org + dest: /etc/nginx/sites-enabled/live.emacsconf.org + force: no + state: link +- name: Reload configuration + service: + name: nginx + state: reloaded -- cgit v1.2.3