Skip to content

licairong/tf-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

demo of terraform + ansible

create resource by terraform

terraform apply -var-file ./env/dev.tfvars

run playbook

cd ./ansible
export ANSIBLE_HOST_KEY_CHECKING=False
export ANSIBLE_TF_DIR=..
export ANSIBLE_NOCOWS=1
ansible-playbook -i ./terraform.py playbook.yml

other playbook

  • ping.yml show hostname and uptime for ALL hosts

for new provider

terraform init -plugin-dir ./providers
terraform plan -var-file ./inputs/default.tfvars

About

tf-ansible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published