Created
September 10, 2019 13:25
-
-
Save jffz/72265f963938d0a63d8f733aacfeff5d to your computer and use it in GitHub Desktop.
[Ansible] Use facts to lookup variables in jinja2 template
This file contains hidden or 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
{% for item in ssh[(ansible_distribution | lower)][(ansible_distribution_major_version | int)] %} | |
- {{ item }} | |
{% endfor %} |
This file contains hidden or 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
--- | |
ssh: | |
ubuntu: | |
18: | |
- test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment