diff options
author | Sacha Chua <sacha@sachachua.com> | 2022-10-13 14:12:29 -0400 |
---|---|---|
committer | Sacha Chua <sacha@sachachua.com> | 2022-10-13 14:12:29 -0400 |
commit | e618dfe5588d2c9c5d7fb954f81001f5f84d6e1f (patch) | |
tree | 792067f1691454fa7ee8ca6a6a90ec732a43eefc /pad-proxy/tasks | |
parent | 02575eee5ec6fffccb233a42ba3e82a990df8fe2 (diff) | |
download | emacsconf-ansible-e618dfe5588d2c9c5d7fb954f81001f5f84d6e1f.tar.xz emacsconf-ansible-e618dfe5588d2c9c5d7fb954f81001f5f84d6e1f.zip |
Actually add pad-proxy, document things
Diffstat (limited to '')
-rw-r--r-- | pad-proxy/tasks/main.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pad-proxy/tasks/main.yml b/pad-proxy/tasks/main.yml new file mode 100644 index 0000000..d47573a --- /dev/null +++ b/pad-proxy/tasks/main.yml @@ -0,0 +1,27 @@ +--- +- name: Set up Nginx as root + become: true + block: + - name: Install Nginx + apt: + name: nginx + state: present + - name: Add proxy configuration + template: + src: etherpad.nginx.conf + dest: /etc/nginx/sites-available/etherpad.conf + when: not use_wikimedia + - name: Add rewrite configuration + template: + src: wikimedia.etherpad.nginx.conf + dest: /etc/nginx/sites-available/etherpad.conf + when: use_wikimedia + - name: Enable site + file: + src: /etc/nginx/sites-available/etherpad.conf + dest: /etc/nginx/sites-enabled/etherpad.conf + state: link + - name: Restart nginx + service: + name: nginx + state: restarted |