-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only gather facts once. Use "image" instead of "inventory_hostname" t…
…o set the image name.
- Loading branch information
1 parent
19cc0cc
commit 3c17565
Showing
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
roles/gather_facts/tasks/main.yml → .../docker_build_gather_facts/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# gather facts via setup in the role, which is after delegation | ||
# we want to enable inventory configurations to make use of collected facts (like ansible_date_time) | ||
# because this is set to run once, it only makes sense to call this role with delegation | ||
- name: run setup to gather facts | ||
setup: | ||
run_once: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters