Commit graph

112 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 554c086b79 redis: variable to disable transparent hugepage (default: do nothing)
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
2022-10-20 14:38:12 +02:00
Jérémy Lecour fc52fbf4bc redis: some values should be quoted
When Redis overwrites its own config, it uses quoted string values, so it's better to do the same to avoid changes.
2022-10-20 14:36:47 +02:00
Jérémy Lecour d0abfa985c redis: config directory must be owned by the user that runs the service
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
… to be able to write tmp config files in it
2022-08-17 16:53:07 +02:00
Jérémy Lecour e6ea44ff29 Explicit loop variable names 2022-06-08 15:38:48 +02:00
Jérémy Lecour cbe7985814 Enforce String notation for mode 2022-06-08 15:38:21 +02:00
Jérémy Lecour b677defd97 redis: binding is possible on multiple interfaces 2022-06-08 15:36:47 +02:00
Jérémy Lecour a93c1a9141 redis: Don't enable plugins in check mode (prevents errors)
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-05 09:41:27 +02:00
Jérémy Lecour 749d6a78cd redis: Add log2mail user to redis group 2022-05-05 09:40:30 +02:00
Ludovic Poujol 959d6a8579 redis : Activate overcommit sysctl 2022-04-12 11:27:46 +02:00
Mathieu Trossevin 1646cc99bf
redis: Remount /usr with RW when adding nagios plugin
Some checks reported errors
continuous-integration/drone/push Build was killed
2022-03-23 13:55:54 +01:00
Alexis Ben Miloud--Josselin 3ef6381ba6 Fix redis' README title
Some checks reported errors
continuous-integration/drone/push Build was killed
2022-03-03 11:52:03 +01:00
Jérémy Lecour 1dc4d0e133 redis: always install check_redis_instances
Some checks reported errors
continuous-integration/drone/push Build was killed
2022-03-01 14:04:05 +01:00
Jérémy Lecour c8ef7e9b75 redis: check_redis_instances tolerates absence of instances
Some checks reported errors
continuous-integration/drone/push Build was killed
2022-03-01 14:02:22 +01:00
Eric Morino 4fb885a33b Fix right for redis log dir and log file
Some checks failed
continuous-integration/drone/push Build is failing
2021-11-15 11:33:34 +01:00
Jérémy Lecour e8a8e85819 redis: instance service for Debian 11 2021-07-02 21:13:42 +02:00
Jérémy Lecour 0fe0244116 Update Galaxy metadata (company, platforms and galaxy_tags) 2021-06-28 15:26:28 +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 5582d6e724 redis: socket/pid directories have the correct permissions 2021-03-18 15:15:39 +01:00
Jérémy Lecour 3103af67a7 redis: escape password in Munin configuration
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-09 18:24:15 +01:00
Jérémy Lecour 3709808fdc redis: use /run instead or /var/run
All checks were successful
continuous-integration/drone/push Build is passing
2021-02-18 16:42:54 +01:00
Jérémy Lecour 6c84ada361 redis: s/content/block/ to workaround the blockinfile bug 2021-02-04 10:55:31 +01:00
Jérémy Lecour 84bd3372d5 blockinfile: change from "content" to "block"
All checks were successful
continuous-integration/drone/push Build is passing
It solves the diff bug :
https://github.com/ansible/ansible/issues/62315
2020-12-02 15:22:35 +01:00
Jérémy Lecour 18ac1e7279 redis: check maxmemory in NRPE check
All checks were successful
continuous-integration/drone/push Build is passing
If "maxmemory" is set and "maxmemory-policy" is missing or set to 
"noeviction" then we enforce the "maxmemory" limit
2020-12-01 19:02:42 +01:00
Jérémy Lecour d80461e39a redis: variable to force use of port 6379 in instances mode
All checks were successful
continuous-integration/drone/push Build is passing
2020-10-19 16:03:58 +02:00
Jérémy Lecour 4cf438c8ff redis: raise an error is port 6379 is used in "instance" mode
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-02 11:22:56 +02:00
Jérémy Lecour 8a87fecbe4 redis: new syntax for match filter
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-02 11:00:06 +02:00
Jérémy Lecour 47d11308ba redis: create sudoers file if missing 2020-06-02 10:59:51 +02:00
Jérémy Lecour 0da938223e redis: remove quotes when reading variables
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-09 09:56:13 +02:00
Jérémy Lecour 099691614e redis: set_facts separately to reuse them
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-02 21:36:41 +01:00
Jérémy Lecour bc1a6f347a redis: add log2mail configuration for Redis if installed
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-02 21:19:50 +01:00
Jérémy Lecour e510c44a4a Merge remote-tracking branch 'origin/T47076' into unstable 2020-03-02 20:54:27 +01:00
Jérémy Lecour bb958b34b0 redis: quote some variables
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-02 20:34:20 +01:00
Jérémy Lecour 7283e34077 Replace version_compare() with version() 2020-02-25 10:45:35 +01:00
Jérémy Lecour adc1aad883 redis: data directory is configurable
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-17 14:54:05 +01:00
Alexis Ben Miloud--Josselin 3ba846cc38 redis: change log path
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-08 17:24:27 +01:00
Alexis Ben Miloud--Josselin 97719d28f2 redis: add log2mail
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-08 17:23:05 +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 5b847ec91c whitespace
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-31 09:54:59 +01:00
Eric Morino 270e42ac77 Remove hooks directories if debian 10 and superior
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-30 17:32:08 +01:00
Jérémy Lecour ce45a39b8b redis: manage runtime directories manually on Jessie
Some checks failed
continuous-integration/drone/push Build is failing
2019-12-13 10:44:44 +01:00
Jérémy Lecour 607ee119ec redis: sudo nopasswd for nagios check 2019-12-13 10:44:44 +01:00
Victor LABORIE 6f5e13f8b8 Add evolix prefix to include_role 2019-11-29 14:00:25 +01:00
Gregory Colpart 7deee9b1e6 modifications variables
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-24 15:12:55 +02:00
Jérémy Lecour bc5e19c002 redis: reload redis when configuration is changed 2019-10-21 15:26:03 +02:00
Jérémy Lecour 429fc39b86 redis: improve check_redis_instances
* a disabled instances is UNCHK (not CRITICAL)
* output is copied directly from check_redis
2019-10-02 14:13:59 +02:00
Jérémy Lecour 0a8061bbd6 return items on separate lines 2019-09-26 15:33:54 +02:00
Jérémy Lecour 2cf5027df9 redis: check_redis_instances supports password 2019-09-25 22:21:32 +02:00