refactor: yml -> yaml

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2025-11-07 20:44:14 +01:00
parent 22c1b534ab
commit ef652fac20
115 changed files with 121 additions and 121 deletions

View File

@@ -0,0 +1,29 @@
---
- name: Download/Extract "{{ download_url }}"
ansible.builtin.unarchive:
src: "{{ download_url }}"
dest: /tmp/
remote_src: true
mode: "755"
- name: Move node_exporter into path
ansible.builtin.copy:
src: "/tmp/node_exporter-{{ tag }}.linux-{{ go_arch }}/node_exporter"
dest: "{{ bin_path }}"
mode: "755"
remote_src: true
become: true
- name: Create node_exporter user.
ansible.builtin.user:
name: node_exporter
shell: /sbin/nologin
state: present
become: true
- name: Copy the node_exporter systemd unit file.
ansible.builtin.template:
src: node_exporter.service.j2
dest: /etc/systemd/system/node_exporter.service
mode: "644"
become: true