Merge "Simulate normal ansible behaviour with shared role"

This commit is contained in:
Jenkins 2016-01-07 10:42:41 +00:00 committed by Gerrit Code Review
commit 5b6e1e9e53
2 changed files with 10 additions and 0 deletions

View File

@ -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
####################

View File

@ -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