redis: create sudoers file if missing

This commit is contained in:
Jérémy Lecour 2020-06-02 10:54:48 +02:00 committed by Jérémy Lecour
parent 86cab2ab94
commit 47d11308ba
2 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ The **patch** part changes incrementally at each release.
* packweb-apache: Don't turn on mod-evasive emails by default
* haproxy: chroot and socket path are configurable
* redis: create sudoers file if missing
### Fixed

View File

@ -50,6 +50,7 @@
line: 'nagios ALL = NOPASSWD: {{ redis_check_redis_path }}'
insertafter: '^nagios'
validate: "visudo -cf %s"
create: yes
when: redis_instance_name is defined
tags:
- redis