xoxys.prometheus/tasks/prepare.yml

24 lines
592 B
YAML
Raw Normal View History

2021-05-29 11:45:35 +00:00
---
- 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