squid: split systemd tasks into own file
This commit is contained in:
parent
755eaab60a
commit
2d249f1815
|
@ -14,6 +14,7 @@ The **patch** part changes incrementally at each release.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
* elasticsearch: listen on local interface only by default
|
* elasticsearch: listen on local interface only by default
|
||||||
|
* squid: split systemd tasks into own file
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
* lxc-php: Don't remove the default pool
|
* lxc-php: Don't remove the default pool
|
||||||
|
|
|
@ -29,12 +29,6 @@
|
||||||
dest: /etc/default/squid
|
dest: /etc/default/squid
|
||||||
when: ansible_distribution_major_version | version_compare('9', '>=')
|
when: ansible_distribution_major_version | version_compare('9', '>=')
|
||||||
|
|
||||||
- name: "Set custom systemd unit service (Debian 10 or later)"
|
|
||||||
copy:
|
|
||||||
src: squid.service
|
|
||||||
dest: /etc/systemd/system/squid.service
|
|
||||||
when: ansible_distribution_major_version | version_compare('10', '>=')
|
|
||||||
|
|
||||||
- name: "squid.conf is present (jessie)"
|
- name: "squid.conf is present (jessie)"
|
||||||
template:
|
template:
|
||||||
src: squid.conf.j2
|
src: squid.conf.j2
|
||||||
|
@ -140,11 +134,7 @@
|
||||||
notify: "reload squid"
|
notify: "reload squid"
|
||||||
when: ansible_distribution_major_version | version_compare('9', '>=')
|
when: ansible_distribution_major_version | version_compare('9', '>=')
|
||||||
|
|
||||||
- name: "Reload systemd and restart squid (Debian 10 or later)"
|
- include: systemd.yml
|
||||||
systemd:
|
|
||||||
name: squid
|
|
||||||
state: restarted
|
|
||||||
daemon_reload: yes
|
|
||||||
when: ansible_distribution_major_version | version_compare('10', '>=')
|
when: ansible_distribution_major_version | version_compare('10', '>=')
|
||||||
|
|
||||||
- include: logrotate_jessie.yml
|
- include: logrotate_jessie.yml
|
||||||
|
|
14
squid/tasks/systemd.yml
Normal file
14
squid/tasks/systemd.yml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: "Set custom systemd unit service (Debian 10 or later)"
|
||||||
|
copy:
|
||||||
|
src: squid.service
|
||||||
|
dest: /etc/systemd/system/squid.service
|
||||||
|
when: ansible_distribution_major_version | version_compare('10', '>=')
|
||||||
|
|
||||||
|
- name: "Reload systemd and restart squid (Debian 10 or later)"
|
||||||
|
systemd:
|
||||||
|
name: squid
|
||||||
|
state: restarted
|
||||||
|
daemon_reload: yes
|
||||||
|
when: ansible_distribution_major_version | version_compare('10', '>=')
|
Loading…
Reference in a new issue