1
0
Fork 0
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:
root 2021-08-15 13:25:50 -04:00
parent 3afd58959f
commit cfce51744c

View file

@ -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=*'