24 lines
592 B
YAML
24 lines
592 B
YAML
|
---
|
||
|
- block:
|
||
|
- name: Create group '{{ prometheus_group }}'
|
||
|
group:
|
||
|
name: "{{ prometheus_group }}"
|
||
|
state: present
|
||
|
|
||
|
- name: Create user '{{ prometheus_user }}'
|
||
|
user:
|
||
|
comment: Prometheus
|
||
|
name: "{{ prometheus_user }}"
|
||
|
home: "{{ prometheus_user_home }}"
|
||
|
group: "{{ prometheus_group }}"
|
||
|
groups: "{{ prometheus_extra_groups | join(',') }}"
|
||
|
|
||
|
- name: Install dependencies
|
||
|
package:
|
||
|
name: "{{ item }}"
|
||
|
state: present
|
||
|
loop:
|
||
|
- "{{ prometheus_packages }}"
|
||
|
become: True
|
||
|
become_user: root
|