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)
gitea/ansible-roles/pipeline/head This commit looks good
2022-10-20 14:38:12 +02:00
Jérémy Lecour
d0abfa985c
redis: config directory must be owned by the user that runs the service
...
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)
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
continuous-integration/drone/push Build was killed
2022-03-23 13:55:54 +01:00
Jérémy Lecour
1dc4d0e133
redis: always install check_redis_instances
continuous-integration/drone/push Build was killed
2022-03-01 14:04:05 +01:00
Eric Morino
4fb885a33b
Fix right for redis log dir and log file
continuous-integration/drone/push Build is failing
2021-11-15 11:33:34 +01: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
3709808fdc
redis: use /run instead or /var/run
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"
...
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
d80461e39a
redis: variable to force use of port 6379 in instances mode
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
continuous-integration/drone/push Build is passing
2020-06-02 11:22:56 +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
099691614e
redis: set_facts separately to reuse them
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
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
7283e34077
Replace version_compare() with version()
2020-02-25 10:45:35 +01:00
Jérémy Lecour
adc1aad883
redis: data directory is configurable
continuous-integration/drone/push Build is passing
2020-01-17 14:54:05 +01:00
Alexis Ben Miloud--Josselin
97719d28f2
redis: add log2mail
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
Eric Morino
270e42ac77
Remove hooks directories if debian 10 and superior
continuous-integration/drone/push Build is passing
2019-12-30 17:32:08 +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
Jérémy Lecour
bc5e19c002
redis: reload redis when configuration is changed
2019-10-21 15:26:03 +02:00
Jérémy Lecour
a57b734486
Revert "NRPE checks probably don't need sudo"
...
This reverts commit d05897fe93
.
2019-09-06 16:02:00 +02:00
Jérémy Lecour
c6cba6d9e0
sudo without password for nagios
2019-09-06 15:55:35 +02:00
Jérémy Lecour
d05897fe93
NRPE checks probably don't need sudo
2019-09-06 14:02:52 +02:00
Jérémy Lecour
961f50c1a6
Fix permissions for check_redis and check_redis_instances
2019-09-06 14:00:44 +02:00
Jérémy Lecour
3768f6553a
Rewrite NRPE checks
2019-09-06 13:55:12 +02:00
Jérémy Lecour
795d397eab
better compatibility with Debian Jessie
2019-09-06 13:54:41 +02:00
Jérémy Lecour
e0ec9e63cb
improve task names
2019-09-05 12:22:02 +02:00
Jérémy Lecour
244b2ef96b
Copy hooks example files
2019-09-05 12:21:51 +02:00
Jérémy Lecour
d972c6c794
rewrite systemd unit, separate configuration files
2019-09-05 09:41:58 +02:00
Jérémy Lecour
d0111f9a4f
WIP: separate Redis instances from default server
2019-09-05 06:50:07 +02:00
Jérémy Lecour
415aedb78a
Install Sentinel if needed
2019-09-05 05:58:59 +02:00
Jérémy Lecour
02723ba0f3
redis: set variables on nclusion, not with set_facts
2019-03-08 13:44:12 +01:00
Jérémy Lecour
42d1cb7906
redis: indentation typo
2018-12-21 11:13:40 +01:00
Jérémy Lecour
92a25a9502
redis: add variables to prevent or force restart
2018-12-21 11:11:15 +01:00
Ludovic Poujol
effdb4c7eb
redis: Configure munin when working in instance mode
2018-12-17 14:47:07 +01:00
Ludovic Poujol
fa49f249e7
redis: Don't set the owner of /var/{lib,log}/redis to a redis instance account
2018-12-17 14:43:42 +01:00
Ludovic Poujol
f2f595af13
redis: In instance mode, ensure to replace the nrpe check_redis with the instance check script
2018-12-05 16:37:52 +01:00