This repository has been archived by the owner on Oct 12, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is the bulk of the in built validity checking. The items which remain are things I want to test further before changing which means they won't be modified for the moment.
- Loading branch information
Showing
3 changed files
with
7 additions
and
40 deletions.
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 |
---|---|---|
@@ -1,18 +1,8 @@ | ||
# {{ ansible_managed }} | ||
define contact{ | ||
{# loop through all key:value pairs and print out the results #} | ||
{# loop through all key:value pairs and output the results #} | ||
{% for key, value in item.iteritems() %} | ||
|
||
{% if key == 'contact_name' %} | ||
{% if key is defined %} | ||
{{ key }} {{ value }} | ||
{% else %} | ||
{{ key }} {{ value |mandatory }} | ||
{% endif %} | ||
{% else %} | ||
{# Special case doesn't apply here #} | ||
{{ key }} {{ value }} | ||
{% endif %} | ||
{% endfor %} | ||
} | ||
|
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