Skip to content

Commit

Permalink
fix: provision
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed May 14, 2020
1 parent b8f7174 commit a9ea22a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/ansible/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@

tasks:
- set_fact:
dkron_servers: "{{ groups['packet'] }}"
dkron_servers: "{{ groups['packet'] | map('extract', hostvars, ['ansible_all_ipv4_addresses', 1]) | list }}"
tags: config

- name: Copy package
copy:
Expand All @@ -59,6 +60,7 @@
template: src={{ item }}.yml.j2 dest=/etc/dkron/{{ item }}.yml
loop:
- dkron
tags: config

- name: ensure service is running and enabled
systemd:
Expand Down

0 comments on commit a9ea22a

Please sign in to comment.