Use this tag for questions regarding writing and processing Ansible templates, Jinja2 syntax within Ansible, custom filters.
How do you get the current host's IP address in a role? I know you can get the list of …
ansible ansible-facts ansible-templateMy use case is the following : I have a template file, and I would like to create 2 different files from …
ansible ansible-templateI have my directory structure as this └── digitalocean ├── README.md ├── play.yml └── roles ├── bootstrap_server │ └── tasks │ └── main.yml ├── create_new_…
ansible ansible-templateI received the following data from the setup module: "ansible_nodename": "3d734bc2a391", "ansible_os_family": "RedHat", "ansible_pkg_…
ansible jinja2 ansible-facts ansible-templateI am getting value of variable "env" in Jinja2 template file using a variable defined in group_vars like: env: "{{ …
ansible jinja2 ansible-templateBelow is the jinja2 template that i wrote to use in ansible. {% set port = 1234 %} {% set server_ip = [] %} {% for ip in …
templates ansible jinja2 ansible-templateSometimes I need to test some jinja2 templates that I use in my ansible roles. What is the simplest way …
ansible jinja2 ansible-playbook ansible-templateI'm trying to loop a dictionary through an ansible template using jinja2 to create a number of datasources but receive …
ansible jinja2 ansible-templateI want to recursively copy over a directory and render all .j2 files in there as templates. For this I …
ansible ansible-templateI am trying to set a variable in Ansible with set_fact at runtime based upon another variable. If uses …
ansible jinja2 ansible-template