2023-10-25 22:26:17 +02:00
|
|
|
---
|
2024-09-12 10:28:47 +02:00
|
|
|
- name: Ensure group exists
|
2023-10-25 22:26:17 +02:00
|
|
|
become: true
|
|
|
|
ansible.builtin.group:
|
|
|
|
name: "{{ munin_user_group }}"
|
|
|
|
state: present
|
|
|
|
|
2024-09-12 10:28:47 +02:00
|
|
|
- name: Ensure user exists
|
2023-10-25 22:26:17 +02:00
|
|
|
become: true
|
|
|
|
ansible.builtin.user:
|
|
|
|
name: munin
|
|
|
|
group: "{{ munin_user_group }}"
|
|
|
|
shell: /usr/sbin/nologin
|
|
|
|
create_home: false
|
|
|
|
|
2024-09-12 10:28:47 +02:00
|
|
|
- name: Ensure user is added to sudoers
|
2024-10-23 20:16:30 +02:00
|
|
|
community.general.sudoers:
|
|
|
|
name: "users-sudo-munin"
|
2023-10-25 22:26:17 +02:00
|
|
|
state: present
|
2024-10-23 20:16:30 +02:00
|
|
|
user: munin
|
|
|
|
commands: ALL
|
|
|
|
nopassword: true
|