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