add ipmi_exporter role
This commit is contained in:
20
roles/ipmi_exporter/tasks/configure.yml
Normal file
20
roles/ipmi_exporter/tasks/configure.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
- name: "Upload ipmi_exporter local configure file"
|
||||
notify: "(Re)start and enable ipmi_exporter"
|
||||
when: ipmi_exp_source_dir is defined and ipmi_exp_source_dir | length > 0
|
||||
ansible.builtin.template:
|
||||
src: "{{ ipmi_exp_source_dir }}/ipmi_local.conf"
|
||||
dest: "{{ ipmi_exp_config_dir }}/ipmi_local.conf"
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0640'
|
||||
|
||||
- name: "Upload ipmi_exporter web configure file"
|
||||
notify: "(Re)start and enable ipmi_exporter"
|
||||
when: ipmi_exp_web_source_dir is defined and ipmi_exp_web_source_dir | length > 0
|
||||
ansible.builtin.template:
|
||||
src: "{{ ipmi_exp_web_source_dir }}/web_conf.yaml"
|
||||
dest: "{{ ipmi_exp_config_dir }}/web_conf.yaml"
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0640'
|
||||
Reference in New Issue
Block a user