Skip to content

nishantparhi/Dynamic-inventory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Dynamic-inventory

Dynamic inventory using Jinja2 templates using ansible

Type

ansible-playbook mark1.yml -e '{"groupName":"host","hostlist":["nishantparhi.com","google.com","facebook.com","amazon.in"]}' -K

to your shell, and then a file gets created called hosts in the give destination in mark1.yml

NOTE: In the proof I used cat command to show the result of the output file created, hosts

Proof: https://asciinema.org/a/5wzT2iiP73cNUgX670H1EafW7

About

Dynamic inventory (ansible) using Jinja2 templates

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published