varnish: fix tags and variables
gitea/ansible-roles/pipeline/head This commit looks good
Details
gitea/ansible-roles/pipeline/head This commit looks good
Details
This commit is contained in:
parent
c9ccda2277
commit
7f3f7b3e04
|
@ -18,3 +18,5 @@ varnish_additional_options: ""
|
||||||
|
|
||||||
varnish_config_file: /etc/varnish/default.vcl
|
varnish_config_file: /etc/varnish/default.vcl
|
||||||
varnish_secret_file: /etc/varnish/secret
|
varnish_secret_file: /etc/varnish/secret
|
||||||
|
|
||||||
|
varnish_tmp_dir: /var/tmp-vcache
|
|
@ -48,16 +48,16 @@
|
||||||
state: directory
|
state: directory
|
||||||
tags:
|
tags:
|
||||||
- varnish
|
- varnish
|
||||||
|
- config
|
||||||
|
|
||||||
- name: Rename legacy systemd override
|
- name: Remove legacy systemd override
|
||||||
command: mv /etc/systemd/system/varnish.service.d/evolinux.conf /etc/systemd/system/varnish.service.d/override.conf
|
file:
|
||||||
args:
|
dest: /etc/systemd/system/varnish.service.d/evolinux.conf
|
||||||
removes: /etc/systemd/system/varnish.service.d/evolinux.conf
|
|
||||||
creates: /etc/systemd/system/varnish.service.d/override.conf
|
|
||||||
notify:
|
notify:
|
||||||
- reload systemd
|
- reload systemd
|
||||||
tags:
|
tags:
|
||||||
- varnish
|
- varnish
|
||||||
|
- config
|
||||||
|
|
||||||
- name: Varnish systemd override template (Varnish 4 and 5)
|
- name: Varnish systemd override template (Varnish 4 and 5)
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -65,6 +65,10 @@
|
||||||
when:
|
when:
|
||||||
- varnish_package_facts['version'] is version('4', '>=')
|
- varnish_package_facts['version'] is version('4', '>=')
|
||||||
- varnish_package_facts['version'] is version('6', '<')
|
- varnish_package_facts['version'] is version('6', '<')
|
||||||
|
tags:
|
||||||
|
- varnish
|
||||||
|
- config
|
||||||
|
- update-config
|
||||||
|
|
||||||
- name: Varnish systemd override template (Varnish 6)
|
- name: Varnish systemd override template (Varnish 6)
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -72,12 +76,20 @@
|
||||||
when:
|
when:
|
||||||
- varnish_package_facts['version'] is version('6', '>=')
|
- varnish_package_facts['version'] is version('6', '>=')
|
||||||
- varnish_package_facts['version'] is version('7', '<')
|
- varnish_package_facts['version'] is version('7', '<')
|
||||||
|
tags:
|
||||||
|
- varnish
|
||||||
|
- config
|
||||||
|
- update-config
|
||||||
|
|
||||||
- name: Varnish systemd override template (Varnish 7 and later)
|
- name: Varnish systemd override template (Varnish 7 and later)
|
||||||
set_fact:
|
set_fact:
|
||||||
varnish_systemd_override_template: override.conf.varnish7.j2
|
varnish_systemd_override_template: override.conf.varnish7.j2
|
||||||
when:
|
when:
|
||||||
- varnish_package_facts['version'] is version('7', '>=')
|
- varnish_package_facts['version'] is version('7', '>=')
|
||||||
|
tags:
|
||||||
|
- varnish
|
||||||
|
- config
|
||||||
|
- update-config
|
||||||
|
|
||||||
- name: Override Varnish systemd unit
|
- name: Override Varnish systemd unit
|
||||||
template:
|
template:
|
||||||
|
|
Loading…
Reference in New Issue