Skip to content

Commit

Permalink
use ansible.builtin.template
Browse files Browse the repository at this point in the history
  • Loading branch information
modship committed Jun 3, 2024
1 parent 6ea5710 commit 4e3790b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/alertmanager/tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
- restart alertmanager

- name: Configure alertmanager web
ansible.builtin.copy:
content: "{{ alertmanager_web_config | to_nice_yaml(indent=2, sort_keys=False) }}"
ansible.builtin.template:
src: "{{ alertmanager_web_config }}"
dest: "{{ alertmanager_config_dir }}/web.yml"
force: true
owner: alertmanager
Expand Down

0 comments on commit 4e3790b

Please sign in to comment.