Showing posts with the label ansible-template

[FIXED] How to exclude an host in Ansible Jinja2 template for-loop?

Issue I have a template named foo.yml.j2 used in an Ansible task to generate a foo.yml file: …

[FIXED] Jinja2 - create a dynamic variable using value of variable as part of the key of another variable

Issue I am writing a jinja2 template for an Ansible role. I have this in my role/x/vars/main.yml …

[FIXED] How to get the first element of a list from the output of setup module in Ansible?

Issue I received the following data from the setup module: "ansible_nodename": "3d…

[FIXED] Ansible Looping over dynamic inventory using jinja template

Issue Here is my Ansible playbook. It reads /etc/waagent.conf file and checks if variable AutoUpdat…