ansible-collection-prometheus/roles/smokeping_prober/tasks/configure.yml
gardar b90cb5bfe4
refactor(smokeping_prober): delegate common tasks to _common role
Signed-off-by: gardar <gardar@users.noreply.github.com>
2024-10-15 17:13:08 +00:00

31 lines
1.1 KiB
YAML

---
- name: Configure
ansible.builtin.include_role:
name: prometheus.prometheus._common
tasks_from: configure.yml
vars:
_common_system_user: "{{ smokeping_prober_system_user }}"
_common_system_group: "{{ smokeping_prober_system_group }}"
_common_config_dir: "{{ smokeping_prober_config_dir }}"
_common_tls_server_config: "{{ smokeping_prober_tls_server_config }}"
_common_http_server_config: "{{ smokeping_prober_http_server_config }}"
_common_basic_auth_users: "{{ smokeping_prober_basic_auth_users }}"
tags:
- smokeping_prober
- configure
- smokeping_prober_configure
- name: Copy the smokeping_prober config file
ansible.builtin.template:
src: probes.yml.j2
dest: "{{ smokeping_prober_config_dir }}/{{ smokeping_prober_config_file }}"
owner: root
group: root
mode: 0644
no_log: "{{ false if (lookup('env', 'CI')) or (lookup('env', 'MOLECULE_PROVISIONER_NAME')) else true }}"
notify: restart smokeping_prober
become: true
tags:
- smokeping_prober
- configure
- smokeping_prober_configure