Skip to content

Commit

Permalink
fix(vmagent): modify target password file path
Browse files Browse the repository at this point in the history
  • Loading branch information
meysam81 committed Oct 6, 2024
1 parent d99619b commit 91e7025
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion roles/vmagent/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
vmagent_arch: "{{ (ansible_architecture | default('amd64')) | replace('x86_64', 'amd64') }}"
vmagent_arch: "{{ (ansible_architecture | default('amd64')) | replace('x86_64', 'amd64') | replace('aarch64', 'arm64') }}"
vmagent_bin: /usr/local/bin/vmagent-prod
vmagent_docker_enabled: false
vmagent_fail2ban_enabled: false
Expand Down
5 changes: 5 additions & 0 deletions roles/vmagent/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@
name: vmagent
state: reloaded
daemon_reload: true
- name: Restart vmagent service
ansible.builtin.systemd:
name: vmagent
state: restarted
daemon_reload: true
4 changes: 2 additions & 2 deletions roles/vmagent/tasks/setup-Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
- name: Place the password file
ansible.builtin.copy:
content: "{{ vmagent_remote_write_password }}"
dest: etc/vmagent/remote-url-password
dest: /etc/vmagent/remote-url-password
owner: "{{ vmagent_user }}"
group: "{{ vmagent_group }}"
mode: "0400"
Expand All @@ -56,7 +56,7 @@
owner: root
group: root
mode: "0644"
notify: Reload vmagent service
notify: Restart vmagent service
- name: Copy config file
ansible.builtin.template:
src: vmagent.yml.j2
Expand Down

0 comments on commit 91e7025

Please sign in to comment.