remove docker group
This commit is contained in:
parent
a690343336
commit
87c6b9e4be
1 changed files with 0 additions and 12 deletions
|
@ -1,16 +1,4 @@
|
|||
---
|
||||
- name: Check if docker group exists
|
||||
shell: grep docker /etc/groups
|
||||
register: docker_group
|
||||
|
||||
- name: Add nagios to docker group if it exists
|
||||
user:
|
||||
name: nagios
|
||||
append: true
|
||||
groups:
|
||||
- docker
|
||||
when: docker_group.rc == 0
|
||||
|
||||
- name: Ensure folder for Nagios configurations exists
|
||||
file:
|
||||
path: /etc/nagios4/conf.d
|
||||
|
|
Loading…
Reference in a new issue