Merge "Simulate normal ansible behaviour with shared role"
This commit is contained in:
commit
5b6e1e9e53
@ -1,4 +1,8 @@
|
||||
---
|
||||
# Due to the way we do our inventory, ansible does not pick up on the fact that
|
||||
# this role has already run. We can track what has run with host facts.
|
||||
common_run: False
|
||||
|
||||
####################
|
||||
# Docker
|
||||
####################
|
||||
|
@ -1,2 +1,8 @@
|
||||
---
|
||||
- include: "{{ action }}.yml"
|
||||
when: not common_run
|
||||
|
||||
- name: Registering common role has run
|
||||
set_fact:
|
||||
common_run: True
|
||||
when: not common_run
|
||||
|
Loading…
Reference in New Issue
Block a user