Skip to content

This project will bootstrap a number of Linux servers as desired using the terraform azure resource manager

Notifications You must be signed in to change notification settings

KelvinAkpobome/Azure_Boot_Up

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automation with Ansible and terraform - ansible integration with terraform

Provisioning Linux servers with the azure provider on an Ubuntu machine,

Prerequiste

You need to install ansible, depending on your Package manager

Variable files you will need in ansible/group_vars/all/vault.yml

Ansible downloads terraform binary, then spins up the infrastructure as configured

subscription_id:  cXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

app_id: eXXXXXXXXX-XXXXXXXXXXX-XXXXXXXX

password: CXXXXXXXXX_.XXXXXXXXXX--7XXXXXXXXXX

tenant: XXXXXXX-XXX-XXXXX-XXXXXXXXXX-XXXXXXXXXXXXX

Outcome

You will have your ip addresses for both VMs in your ansible/inventory/hosts file as follows

[master]
XXX.XXX.XXX.XXX

[worker]
XXX.XXX.XXX.XXX

[all:vars]
ansible_python_interpreter=/usr/bin/python3

About

This project will bootstrap a number of Linux servers as desired using the terraform azure resource manager

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published