Skip to content

Commit

Permalink
Merge pull request #35 from valiantlynx/working
Browse files Browse the repository at this point in the history
ansible.builtin.template
  • Loading branch information
valiantlynx authored Apr 5, 2024
2 parents 891fea2 + b819e07 commit 3f7d985
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ansible/roles/docker_deploy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,10 @@
force: no

- name: Generate Alertmanager configuration
template:
src: config.yml.j2
dest: "{{ ansible_env.HOME }}/alertmanager/config.yml"
ansible.builtin.template:
src: "alertmanager/config.yml.j2"
dest: "{{ ansible_env.HOME }}/alertmanager/config.yml"
mode: "0644"
vars:
smtp_password: "{{ lookup('env', 'SMTP_PASSWORD') }}"
discord_webhook_url: "{{ lookup('env', 'DISCORD_WEBHOOK_URL') }}"
Expand Down

0 comments on commit 3f7d985

Please sign in to comment.