From ddc497e0fba6334362847fdf698318b5549ead16 Mon Sep 17 00:00:00 2001 From: slinderud Date: Sun, 10 Feb 2019 15:34:31 +0100 Subject: fixed templateing install and service file, updated install documentation and included new varnish vcl file --- ansible/roles/web/tasks/main.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'ansible/roles/web/tasks') diff --git a/ansible/roles/web/tasks/main.yml b/ansible/roles/web/tasks/main.yml index 1c89947..466dec8 100644 --- a/ansible/roles/web/tasks/main.yml +++ b/ansible/roles/web/tasks/main.yml @@ -31,7 +31,9 @@ 'libxml2-dev', 'build-essential', 'cpanminus', - 'apt-transport-https'] + 'apt-transport-https', + 'python-setuptools', + 'python3-pip'] state: present - name: Add packagecloud.io Varnish apt key. @@ -59,6 +61,12 @@ notify: - reload systemd +- name: Copy varnish-acl config + copy: + dest: /etc/varnish/auth.vcl + src: auth.vcl + notify: restart varnish + - name: Copy varnish config copy: dest: /etc/varnish/default.vcl @@ -87,3 +95,12 @@ - name: Install InfluxDB module cpanm: name: AnyEvent::InfluxDB + +- name: Install python dependencies + command: /usr/bin/pip3 install -r /opt/gondul/templating/requirements.txt + +- name: add systemd service file for gondul-template + copy: + dest: /etc/systemd/system/gondul-template.service + src: template.service + notify: restart gondul-template \ No newline at end of file -- cgit v1.2.3