Skip to content

Use jsonnet to render your ansible templates instead of (or in addition to) jinja2!

Notifications You must be signed in to change notification settings

luqasn/ansible_jsonnet_template_action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible_jsonnet_template_action

Use jsonnet to render your templates instead of (or in addition to) jinja2!

Based on the default template action from ansible, thus inheriting its features like the ability to directly copy the rendered files over to a destination (though that's not used in this example).

Features:

  • allows to specify a "library" directory against which imports are resolved
  • can either output json or yaml
  • allows acessing ansible vars from jsonnet

See copy_rules role for a demostration of these features.

For usage in your own playbooks, just copy the action_plugins folder to the root of your playbook.

About

Use jsonnet to render your ansible templates instead of (or in addition to) jinja2!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published