[Cleanup] squid: Compare with empty string + name tasks
This commit is contained in:
parent
2b08a2d81d
commit
c51669531b
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- fail:
|
- name: Check for role compatibility
|
||||||
|
fail:
|
||||||
msg: only compatible with Debian >= 8
|
msg: only compatible with Debian >= 8
|
||||||
when:
|
when:
|
||||||
- ansible_distribution != "Debian" or ansible_distribution_major_version is version('8', '<')
|
- ansible_distribution != "Debian" or ansible_distribution_major_version is version('8', '<')
|
||||||
|
@ -79,7 +80,7 @@
|
||||||
content: |
|
content: |
|
||||||
# Put customized values here.
|
# Put customized values here.
|
||||||
force: no
|
force: no
|
||||||
when: squid_localproxy_enable == False and ansible_distribution_major_version is version('9', '>=')
|
when: not squid_localproxy_enable and ansible_distribution_major_version is version('9', '>=')
|
||||||
|
|
||||||
- name: "evolinux http_access for local proxy (Debian 9 or later)"
|
- name: "evolinux http_access for local proxy (Debian 9 or later)"
|
||||||
copy:
|
copy:
|
||||||
|
@ -95,7 +96,7 @@
|
||||||
content: |
|
content: |
|
||||||
# Put customized values here.
|
# Put customized values here.
|
||||||
force: no
|
force: no
|
||||||
when: squid_localproxy_enable == False and ansible_distribution_major_version is version('9', '>=')
|
when: not squid_localproxy_enable and ansible_distribution_major_version is version('9', '>=')
|
||||||
|
|
||||||
- name: "evolinux overrides for local proxy (Debian 9 or later)"
|
- name: "evolinux overrides for local proxy (Debian 9 or later)"
|
||||||
template:
|
template:
|
||||||
|
@ -111,7 +112,7 @@
|
||||||
content: |
|
content: |
|
||||||
# Put customized values here.
|
# Put customized values here.
|
||||||
force: no
|
force: no
|
||||||
when: squid_localproxy_enable == False and ansible_distribution_major_version is version('9', '>=')
|
when: not squid_localproxy_enable and ansible_distribution_major_version is version('9', '>=')
|
||||||
|
|
||||||
- name: add some URL in whitelist (Debian 8)
|
- name: add some URL in whitelist (Debian 8)
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
|
Loading…
Reference in a new issue