Skip to content

Commit 37bde5e

Browse files
authored
Include tasks using include_tasks (#141)
When using include the variables are calculated too early
1 parent 6182a5b commit 37bde5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
- restart nomad
7272

7373
- name: Get Gossip Key
74-
include: get_gossip_key.yml
74+
include_tasks: get_gossip_key.yml
7575
when:
7676
- _nomad_node_server | bool
7777
- nomad_encrypt_enable | bool
@@ -204,4 +204,4 @@
204204
name: nomad
205205
enabled: true
206206
state: started
207-
when: not ansible_service_mgr == "systemd"
207+
when: not ansible_service_mgr == "systemd"

0 commit comments

Comments
 (0)