ANSIBLE PROVIDER FOR TERRAFORM | IT HAS ARRIVED! | HOW TO USE

  Рет қаралды 7,953

The_Sudo

The_Sudo

Жыл бұрын

Ansible has released a Terraform provider in an effort to make your life easier. Check it out here: registry.terraform.io/provide...
The blog post in which Ansible announced the release: www.ansible.com/blog/providin...
The cloud.terraform ansible collection:
galaxy.ansible.com/cloud/terr...

Пікірлер: 16
@stefan3816
@stefan3816 8 ай бұрын
This will be extremely useful! I love this level of integration, still a few improvements that can be made, sure, but this can be immensely powerful!
@robertgoldstein5819
@robertgoldstein5819 9 ай бұрын
have thought of using depends option on the ansible resource or some other form of delay?
@TheSudo
@TheSudo 8 ай бұрын
I did not attempt that.
@robertgoldstein5819
@robertgoldstein5819 8 ай бұрын
I tried it the v1.1 that came out, but maybe it's how the company requires so much hand holding (vaulting passwords and 2fa stuff) or something else.. the provider didn't work out property for me. instead I hacked it a bit a use file templates to generate the configuration and files. this seems to work smoother. then I run the playbooks separately and review the results.
@bx1803
@bx1803 Жыл бұрын
yaaaass
@dronenb
@dronenb Жыл бұрын
Do you know if there's a way to use a state file that is in Terraform Cloud instead of local?
@TheSudo
@TheSudo Жыл бұрын
Not with this plugin, no. You would have to use the terraform cloud API to download the state file locally.
@dronenb
@dronenb Жыл бұрын
@@TheSudo that’s what I was concluding as well. Regardless, thanks for the video. Im surprised it doesn’t have more views considering it seems to be the only video on KZbin at the moment on the topic.
@dronenb
@dronenb Жыл бұрын
@@TheSudo Actually I figured it out. The module uses the command "terraform show -json STATE_FILE" where STATE_FILE is, by default, the terraform.tfstate file. But you can set the state file name in the inventory with state_file: "" and since it's an empty string it's equivalent to running "terraform show -json" with no other arguments, which works with Terraform Cloud.
@mase2hot225
@mase2hot225 Жыл бұрын
@@dronenb I'm confused how ansible will be able to access the state file in terraform cloud, as I see nowhere we can set where to look / authenticate?
@dronenb
@dronenb Жыл бұрын
@@mase2hot225 the Ansible inventory plugin calls the terraform CLI with the “terraform state” command IIRC and then parses the JSON
@kennethkoffi29
@kennethkoffi29 Жыл бұрын
I spent hours trying to get it work. You forgot to mention that collection requires ansible version >=2.13.0 There's the command that fixed things for me: python3 -m pip install --upgrade ansible
@gokulc7043
@gokulc7043 7 ай бұрын
Thanks mate
@user-lt1lv3pv6y
@user-lt1lv3pv6y Жыл бұрын
All the gard work now gone
What is infrastructure as code? // Terraform Tutorial
30:24
Christian Lempa
Рет қаралды 33 М.
Каха и суп
00:39
К-Media
Рет қаралды 6 МЛН
A clash of kindness and indifference #shorts
00:17
Fabiosa Best Lifehacks
Рет қаралды 111 МЛН
Does size matter? BEACH EDITION
00:32
Mini Katana
Рет қаралды 20 МЛН
Terraform + Ansible on the Azure Terraform Community Call for 11/2023
35:05
Azure Terraformer
Рет қаралды 1,3 М.
Automating my Homelab with Ansible
13:18
Jeff Geerling
Рет қаралды 333 М.
Hands on: How to run Ansible script from Terraform to configure server
11:26
EasyDeploy Technologies Pvt Ltd
Рет қаралды 217
proxmox, cloud-init, terraform, ansible, semaphore demo
14:55
Dan Sheffner
Рет қаралды 4,3 М.
The Right Way to DevOps with Terraform and Ansible
24:53
HashiCorp
Рет қаралды 67 М.
Terraform Ansible Integration | Terraform Ansible AWS Example
8:36
Working with Terraform and Ansible | Choosing the Ultimate IaC Tool
15:28
Akamai Developer
Рет қаралды 134 М.
Create VMs on Proxmox in Seconds!
25:04
Christian Lempa
Рет қаралды 126 М.
Это - iPhone 16 и вот что надо знать...
17:20
Overtake lab
Рет қаралды 109 М.
iPhone, Galaxy или Pixel? 😎
0:16
serg1us
Рет қаралды 926 М.
Зачем ЭТО электрику? #секрет #прибор #энерголикбез
0:56
Александр Мальков
Рет қаралды 634 М.
Красиво, но телефон жаль
0:32
Бесполезные Новости
Рет қаралды 1,4 МЛН