Skip to content

Slowki/ansible-jsonnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slowki.jsonnet - Jsonnet for Ansible

A Jsonnet lookup plugin for Ansible.

Example

files/foo.jsonnet

local ansible_facts = import 'ansible_facts';

ansible_facts.ansible_host

tasks/main.yaml

# Search for `foo.jsonnet` in the `files` subdirectory and return the evaluted object
- ansible.builtin.debug:
    msg: "{{ lookup('slowki.jsonnet.jsonnet', 'foo.jsonnet') }}" # => my_hostname_here

About

A Jsonnet lookup plugin for Ansible

Topics

Resources

License

Stars

Watchers

Forks

Languages