Restart varnish on changes
This commit is contained in:
parent
18d7401265
commit
538f1bec6a
2 changed files with 9 additions and 0 deletions
|
@ -144,3 +144,6 @@
|
||||||
|
|
||||||
- name: restart haproxy
|
- name: restart haproxy
|
||||||
service: name=haproxy state=restarted
|
service: name=haproxy state=restarted
|
||||||
|
|
||||||
|
- name: restart varnish
|
||||||
|
service: name=varnish state=restarted
|
||||||
|
|
|
@ -13,6 +13,8 @@
|
||||||
owner=root group=root
|
owner=root group=root
|
||||||
with_items:
|
with_items:
|
||||||
- { file: varnish, dest: /etc/sysconfig/varnish }
|
- { file: varnish, dest: /etc/sysconfig/varnish }
|
||||||
|
notify:
|
||||||
|
- restart varnish
|
||||||
|
|
||||||
- name: install /etc/varnish/default.vcl - stg
|
- name: install /etc/varnish/default.vcl - stg
|
||||||
copy: src={{ item }} dest=/etc/varnish/default.vcl
|
copy: src={{ item }} dest=/etc/varnish/default.vcl
|
||||||
|
@ -20,6 +22,8 @@
|
||||||
with_items:
|
with_items:
|
||||||
- proxy.vcl.stg
|
- proxy.vcl.stg
|
||||||
when: env == 'staging'
|
when: env == 'staging'
|
||||||
|
notify:
|
||||||
|
- restart varnish
|
||||||
|
|
||||||
- name: install /etc/varnish/default.vcl - prod
|
- name: install /etc/varnish/default.vcl - prod
|
||||||
copy: src={{ item }} dest=/etc/varnish/default.vcl
|
copy: src={{ item }} dest=/etc/varnish/default.vcl
|
||||||
|
@ -27,3 +31,5 @@
|
||||||
with_items:
|
with_items:
|
||||||
- proxy.vcl
|
- proxy.vcl
|
||||||
when: env != 'staging'
|
when: env != 'staging'
|
||||||
|
notify:
|
||||||
|
- restart varnish
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue