aboutsummaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
authorOle Mathias Aa. Heggem <msbone1995@gmail.com>2018-01-23 22:51:25 +0100
committerOle Mathias Aa. Heggem <msbone1995@gmail.com>2018-01-23 22:51:25 +0100
commitd49ed04a10df33ef7001a1fb040c34d591adca9f (patch)
tree5fde537ecf19b57325174bf99063db7fcbffce8c /ansible
parent6659dddc6dddcead1ea5d2535ba879eead66332d (diff)
Varnish is now installed in ansible job
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/web/tasks/main.yml21
1 files changed, 7 insertions, 14 deletions
diff --git a/ansible/roles/web/tasks/main.yml b/ansible/roles/web/tasks/main.yml
index 01bf17f..d05c6db 100644
--- a/ansible/roles/web/tasks/main.yml
+++ b/ansible/roles/web/tasks/main.yml
@@ -51,12 +51,6 @@
name: "varnish"
state: present
-- name: Copy varnish config
- copy:
- dest: /etc/varnish/default.vcl
- src: varnish.vcl
- notify: restart varnish
-
- name: Ensure folder varnish.service.d exists
file: path=/etc/systemd/system/varnish.service.d/ state=directory mode=0755
@@ -66,7 +60,12 @@
src: varnish.service
notify:
- reload systemd
- - restart varnish
+
+- name: Copy varnish config
+ copy:
+ dest: /etc/varnish/default.vcl
+ src: varnish.vcl
+ notify: restart varnish
- name: Make apache listen on port 8080
lineinfile: dest=/etc/apache2/ports.conf regexp="^Listen 80" line="Listen 8080" state=present
@@ -80,18 +79,12 @@
- name: Enable gondul-config
copy:
dest: /etc/apache2/sites-enabled/gondul.conf
- src: apache-virtualhost
+ src: apache-virtualhost.conf
notify: restart apache
- command: a2dissite 000-default
ignore_errors: true
notify: restart apache
-- name: Enable gondul-config
- copy:
- dest: /etc/apache2/sites-enabled/
- src: gondul.conf
- notify: restart apache
-
- cpanm:
name: AnyEvent::InfluxDB