forked from evolix/ansible-roles
varnish: add tags
This commit is contained in:
parent
7310004d3d
commit
b08f968f44
|
@ -3,12 +3,16 @@
|
||||||
apt:
|
apt:
|
||||||
name: varnish
|
name: varnish
|
||||||
state: present
|
state: present
|
||||||
|
tags:
|
||||||
|
- varnish
|
||||||
|
|
||||||
- name: Remove default varnish configuration files
|
- name: Remove default varnish configuration files
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: absent
|
state: absent
|
||||||
with_fileglob: "/etc/defaults/varnish*"
|
with_fileglob: "/etc/defaults/varnish*"
|
||||||
|
tags:
|
||||||
|
- varnish
|
||||||
|
|
||||||
- name: Copy Custom Varnish ExecReload script
|
- name: Copy Custom Varnish ExecReload script
|
||||||
copy:
|
copy:
|
||||||
|
@ -17,11 +21,15 @@
|
||||||
mode: "0700"
|
mode: "0700"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
tags:
|
||||||
|
- varnish
|
||||||
|
|
||||||
- name: Create a system config directory for systemd overrides
|
- name: Create a system config directory for systemd overrides
|
||||||
file:
|
file:
|
||||||
path: /etc/systemd/system/varnish.service.d
|
path: /etc/systemd/system/varnish.service.d
|
||||||
state: directory
|
state: directory
|
||||||
|
tags:
|
||||||
|
- varnish
|
||||||
|
|
||||||
- name: Modify Varnish configuration files
|
- name: Modify Varnish configuration files
|
||||||
template:
|
template:
|
||||||
|
@ -30,6 +38,8 @@
|
||||||
force: yes
|
force: yes
|
||||||
backup: yes
|
backup: yes
|
||||||
notify: reload systemctl
|
notify: reload systemctl
|
||||||
|
tags:
|
||||||
|
- varnish
|
||||||
|
|
||||||
- name: Patch logrotate conf
|
- name: Patch logrotate conf
|
||||||
replace:
|
replace:
|
||||||
|
@ -39,6 +49,8 @@
|
||||||
with_items:
|
with_items:
|
||||||
- varnishlog
|
- varnishlog
|
||||||
- varnishncsa
|
- varnishncsa
|
||||||
|
tags:
|
||||||
|
- varnish
|
||||||
|
|
||||||
- name: Copy Varnish configuration
|
- name: Copy Varnish configuration
|
||||||
template:
|
template:
|
||||||
|
@ -51,3 +63,5 @@
|
||||||
- "templates/varnish/default.default.vcl.j2"
|
- "templates/varnish/default.default.vcl.j2"
|
||||||
- "default.vcl.j2"
|
- "default.vcl.j2"
|
||||||
notify: reload varnish
|
notify: reload varnish
|
||||||
|
tags:
|
||||||
|
- varnish
|
||||||
|
|
Loading…
Reference in a new issue