Skip to content

This is a simple little example to test out Ansible's template module. With ansible installed, you can easily run this playbook to play with your Jinja templates.

Notifications You must be signed in to change notification settings

ryeleo/tinker-with-ansible-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple little example to test out Ansible's template module. With ansible installed, you can easily run this playbook to play with your Jinja templates.

Prerequisites:

  • Ansible
  • (Jinja2, which Ansible already depends on)

Example

Simply copy the template you are testing into the template file "mytemplate.j2", then run the playbook.

ansible-playbook test-mytemplate.yml

You can add variables as needed into the task in the playbook, similar to the 'sequence' variable.

About

This is a simple little example to test out Ansible's template module. With ansible installed, you can easily run this playbook to play with your Jinja templates.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages