Mathieu Trossevin
7c632352a0
Replace the include
module with include_tasks
or import_tasks
...
The behaviour of the `include` module is badly defined (it try to choose
between statically importing the tasks and dynamically including them)
and can cause problems depending on any number of constraints (mostly if
it choose the wrong behaviour).
Replace it with the `import_tasks` (always statically import tasks) unless
the `include` is in a loop in which case we replace it with
`include_tasks` (always dynamically include tasks).
2023-01-03 14:43:42 +01:00
Jérémy Lecour
1728eaee68
Revert "Add “when: not ansible_check_mode” to allow more --check"
...
gitea/ansible-roles/pipeline/head This commit looks good
This reverts commit fafff25c20
.
This reverts commit e64471c5a8084f95a8e6f955d3fa918c55b8e846.
2022-12-14 07:41:18 +01:00
David Prevot
fafff25c20
Add “when: not ansible_check_mode” to allow more --check
gitea/ansible-roles/pipeline/head This commit looks good
2022-12-02 17:40:43 +01:00
Jérémy Lecour
c5ab0c0ff9
squid: remove obsolete variable on Squid 4
2021-07-02 21:13:05 +02:00
Jérémy Lecour
2ed77c60f0
Improve Ansible syntax
...
replace « x | changed » by « x is changed »
add explicit « bool » filter
use « length » filter instead of string comparison
2021-05-09 23:06:42 +02:00
Jérémy Lecour
5138065059
Use 'loop' syntax instead of 'with_items'
2021-05-04 14:19:18 +02:00
Jérémy Lecour
7283e34077
Replace version_compare() with version()
2020-02-25 10:45:35 +01:00
Jérémy Lecour
e04d881988
replace "with_items" in apt modules
2019-12-31 16:18:56 +01:00
Jérémy Lecour
79bb6103b8
Change "|version_compare" with "is version_compare"
2019-12-31 10:18:19 +01:00
Jérémy Lecour
2d249f1815
squid: split systemd tasks into own file
2019-09-22 22:18:09 +02:00
Benoît S.
4e02e8ee94
squid: typo for copy task
2019-07-04 17:16:34 +02:00
Benoît S.
bb288ca991
squid: Custom systemd unit file for Debian >=10
...
continuous-integration/drone/pr Build encountered an error
continuous-integration/drone/push Build is passing
Fixes #63
2019-07-03 10:07:00 +02:00
Benoît S.
771c75c1de
all-roles: Dot not use ansible_lsb as it is deprecated
...
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build is passing
We move from `ansible_lsb.codename` to `ansible_distribution_release`.
2019-07-03 09:41:35 +02:00
Jérémy Lecour
bee57a0b3c
change distribution release codename
...
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build is failing
Ansible 2.2 is too old to know about buster.
Let's use LSB for that.
2019-06-18 17:35:28 +02:00
Jérémy Lecour
673d5a68c5
squid: change a task name
2018-08-24 18:11:19 +02:00
Jérémy Lecour
c1169f86f1
Squid: replace logrotate file if default
2017-12-28 11:16:06 +01:00
Gregory Colpart
3882a366e4
Revert "squid: consistent version switch" because we use == jessie everywhere
...
This reverts commit c44896d433
.
2017-09-14 19:13:59 +02:00
Jérémy Lecour
82fda57cdb
squid: don't overwrite whitelist for Debian 8
2017-09-14 09:29:52 +02:00
Jérémy Lecour
b4cf781dd1
squid: append whitelist for Debian 8 too
2017-09-14 09:29:52 +02:00
Jérémy Lecour
c44896d433
squid: consistent version switch
2017-09-14 09:29:51 +02:00
Jérémy Lecour
ca2048f9e3
squid: fix variable name
2017-09-14 09:29:51 +02:00
Gregory Colpart
207a2f6011
Improve distribution verification
2017-08-23 01:49:27 +02:00
Gregory Colpart
32bcec3cc8
review squid role whith https://wiki.evolix.org/HowtoSquid
2017-08-23 01:17:45 +02:00
Jérémy Lecour
0c2170cf5c
Remove some backups, again
2017-07-18 19:38:03 +02:00
Jérémy Lecour
6bada3aa70
squid: just reload when possible
2017-07-03 17:37:11 +02:00
Jérémy Lecour
cac6b2780d
squid: reload handler must be precise
2017-04-05 11:24:48 +02:00
Jérémy Lecour
04314d719c
squid: add whitelist entries
2017-04-04 11:52:08 +02:00
Jérémy Lecour
9dca0f98bf
Squid: deal with Jessie and Stretch
2017-03-14 18:11:49 +01:00
Jérémy Lecour
91c8fad950
Extract logrotate configurations in roles
2017-01-03 16:58:19 +01:00
Jérémy Lecour
82f9cda228
Squid: proper file name for evolinux whitelist
2016-12-21 16:12:30 +01:00
Jérémy Lecour
c97f504c96
Squid: fix Evolix whitelist file name
2016-12-21 16:12:30 +01:00
Jérémy Lecour
c0ab8f99ce
Squash: conventions, evolinux, etc-git…
2016-12-21 16:12:30 +01:00