Skip to content

qwinkler/terraform-ansible-inventory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible config from terraform

This lifehack allows to use terraform output as ansible config

Usage

cd terraform
terraform init
terraform apply -auto-approve
cd ..
ansible-playbook main.yml

Details

Here is how it looks like:

$ terraform output -json ansible_inventory
{"myhosts":["1.2.3.4"]}

About

Generate Ansible inventory via terraform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published