-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also reliably verifies that required vars are present and clears them after the associated subscript is done. References #206
- Loading branch information
Steve Moyer
committed
Jul 7, 2020
1 parent
d71f321
commit 038297f
Showing
4 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
|
||
- name: "clear the project's subscript variables" | ||
set_fact: | ||
"{{ item.name }}": | ||
with_items: "{{ subscript_vars }}" |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
|
||
- name: "debug the project's subscript variables" | ||
debug: | ||
var: "{{ item.name }}" | ||
with_items: "{{ subscript_vars }}" |
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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
|
||
- name: "verifies that the required subscript variables are set" | ||
assert: | ||
that: "not {{ item.required }} or {{ item.name }} != ''" | ||
quiet: true | ||
with_items: "{{ subscript_vars }}" |