Skip to content

Commit

Permalink
Draft: Create a Terraform playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
gergelypolonkai committed Sep 14, 2024
1 parent aa8f0fe commit bbd2e10
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions playbooks/terraform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- name: Apply Terraform configuration
hosts: localhost
roles:
- terraform
7 changes: 7 additions & 0 deletions roles/terraform/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- name: Terraform our environment
community.general.terraform:
project_path: "../terraform"
state: present
register: terraform_output
- debug:
var: terraform_output.outputs

0 comments on commit bbd2e10

Please sign in to comment.