mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
network/tasks/enable_services.yml: Clarify Squid enable/disable actions
This commit is contained in:
parent
3afd58959f
commit
cfce51744c
1 changed files with 4 additions and 4 deletions
|
@ -141,7 +141,7 @@
|
|||
line: 'HTTPCACHE_ON=True'
|
||||
when: squid_install and squid_enabled
|
||||
|
||||
- name: Enable Squid systemd service ({{ proxy }}) - if squid_install and squid_enabled
|
||||
- name: Enable systemd service '{{ proxy }}' - if squid_install and squid_enabled
|
||||
systemd:
|
||||
name: "{{ proxy }}" # squid (or squid3 on old OS's vars/debian-8.yml & vars/raspbian-8.yml)
|
||||
enabled: yes
|
||||
|
@ -156,20 +156,20 @@
|
|||
# mode: 0644
|
||||
when: squid_install and squid_enabled
|
||||
|
||||
- name: Point to Squid config file from startup file - if squid_install and squid_enabled
|
||||
- name: Point /etc/init.d/{{ proxy }} to /etc/{{ proxy }}/squid-iiab.conf - if squid_install and squid_enabled
|
||||
lineinfile:
|
||||
regexp: '^CONFIG'
|
||||
line: "CONFIG=/etc/{{ proxy }}/squid-iiab.conf"
|
||||
path: "/etc/init.d/{{ proxy }}"
|
||||
when: squid_install and squid_enabled
|
||||
|
||||
- name: Disable Squid service, if not squid_enabled - if (squid_install or squid_installed [{{ squid_installed }}] is defined) and not squid_enabled
|
||||
- name: Disable systemd service '{{ proxy }}' - if (squid_install or squid_installed [{{ squid_installed }}] is defined) and not squid_enabled
|
||||
systemd:
|
||||
name: "{{ proxy }}"
|
||||
enabled: no
|
||||
when: (squid_install or squid_installed is defined) and not squid_enabled
|
||||
|
||||
- name: Revert to 'HTTPCACHE_ON=False' - if squid_install and not squid_enabled
|
||||
- name: Revert {{ iiab_env_file }} to 'HTTPCACHE_ON=False' - if squid_install and not squid_enabled
|
||||
lineinfile:
|
||||
path: "{{ iiab_env_file }}"
|
||||
regexp: '^HTTPCACHE_ON=*'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue