Commit graph

42 commits

Author SHA1 Message Date
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 7a0e0d81d6 Proper jinja spacing
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
2022-12-28 09:03:37 +01:00
Jérémy Lecour 54dca82838 varnish: fix missing state, that blocked the task
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
2022-11-26 19:10:21 +01:00
Jérémy Lecour ecd9d1543f varnish: better package facts usage with check mode and tags
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
2022-11-21 15:46:46 +01:00
Jérémy Lecour 7f3f7b3e04 varnish: fix tags and variables
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
2022-11-02 22:32:56 +01:00
Jérémy Lecour c9ccda2277 varnish: create special tmp directory for syntax validation
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
2022-11-02 19:45:15 +01:00
Jérémy Lecour 4d259d3c04 varnish: systemd override depends on Varnish
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
Use Varnish version instead of Debian version to choose systemd override template, to make it forward compatible
2022-11-02 13:55:03 +01:00
Jérémy Lecour 2f68ae5339 Preliminary support for Bullseye 2021-07-02 20:58:09 +02:00
Jérémy Lecour 02451f1e67 add default (useless) value for file lookup
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-19 14:35:08 +02:00
Jérémy Lecour 403ea45eeb Add forgotten tag
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-06 13:03:28 +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 debc4a82ca Use 'loop' syntax instead of 'with_first_found'
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-04 13:39:47 +02:00
Jérémy Lecour 6ee66d0a74 varnish: add tags 2020-12-23 15:43:05 +01:00
Jérémy Lecour 67ce8de85e varnish: custom reload script is now useless
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2020-12-20 23:25:34 +01:00
Jérémy Lecour 0f5ce44186 varnish: change template name for better readability
All checks were successful
continuous-integration/drone/push Build is passing
2020-12-20 23:04:17 +01:00
Jérémy Lecour d430dea043 whitespaces 2020-12-20 23:03:51 +01:00
Jérémy Lecour 8861169a04 varnish: config file name is configurable 2020-12-20 23:03:10 +01:00
Jérémy Lecour 7283e34077 Replace version_compare() with version() 2020-02-25 10:45:35 +01:00
Jérémy Lecour 79bb6103b8 Change "|version_compare" with "is version_compare" 2019-12-31 10:18:19 +01:00
Gregory Colpart 6fe86a76c5 remove reload-vcl.sh (Custom Varnish ExecReload script) when Debian >= 10 2019-09-24 14:00:22 +02:00
Jérémy Lecour 419416b531 Varnish : reload or restart if needed 2017-11-30 23:51:18 +01:00
Gregory Colpart 139a27383d Use /etc/systemd/system/*.service.d/evolinux.conf and fix systemd unit 2017-09-14 19:30:59 +02:00
Jérémy Lecour 0c2170cf5c Remove some backups, again 2017-07-18 19:38:03 +02:00
Romain Dessort 9ea06d987e Add Varnish plugin for munin 2017-05-23 16:19:29 -04:00
Romain Dessort 45fbbef950 Fix issue in Varnish systemd unit
The ExecReload key was not overridden correctly.
2017-05-23 11:37:47 -04:00
Romain Dessort 4ca37fddbc Fix another issue in task for removing Varnish sysV default files 2017-05-23 11:22:57 -04:00
Romain Dessort f2c4f2a59f Fix task which removes obsolete sysV files for varnish daemons 2017-05-23 11:13:40 -04:00
Victor LABORIE 4ea69eea6d varnish: permit included config 2017-05-15 14:21:28 +02:00
Victor LABORIE da39dbb87b varnish: fix handlers 2017-05-12 14:47:58 +02:00
Victor LABORIE b08f968f44 varnish: add tags 2017-05-12 13:44:59 +02:00
Victor LABORIE 7310004d3d varnish: add templating of default.vcl 2017-05-12 12:40:23 +02:00
Jérémy Lecour 45337ece51 Varnish: add many variables for systemd unit file 2017-04-12 18:04:36 +02:00
Jérémy Lecour bdf534fdbb Varnish: fix logrotate replace
it was not idempotent and would add a segment indefinitely
2017-04-12 18:04:09 +02:00
Romain Dessort 0156555920 Fix logrotate error for varnish* 2017-03-30 11:54:58 -04:00
Jérémy Lecour 294cea44e8 Change mode with leading 0, but still as String 2017-03-23 16:59:43 +01:00
Romain Dessort 4be248ce58 Fix Varnish systemd unit
We need to switch to copy module instead of ini_file since it doe not
support putting the same key multiple times in a section.
2017-03-15 18:01:33 -04:00
Romain Dessort 6b3b693501 Fix filename for Varnish systemd unit override 2017-03-15 17:49:17 -04:00
Jérémy Lecour 5a4f838375 Unix mode MUST be a quoted string when using octal notation 2017-01-05 12:03:54 +01:00
Gabriel Périard-Tremblay 083d36fe98 Fix syntax + use systemd overrides 2016-12-21 16:12:25 +01:00
Gabriel Périard-Tremblay 0b54ccd6c8 Add reload script + lineinfile --> ini_file + config ExecReload 2016-12-21 16:12:25 +01:00
Gabriel Périard-Tremblay 3b1ed33e4b Varnish role idempotent 2016-12-21 16:12:25 +01:00
Gabriel Périard-Tremblay 1bb4840f48 Add Varnish Role 2016-12-21 16:12:25 +01:00