Skip to content

Commit 2daa6bf

Browse files
committed
Updated readme.
1 parent 8c22005 commit 2daa6bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ This repository contains code examples for running Terraform and Ansible togethe
33

44
## Run Ansible from Terraform
55
### With `local_exec`
6-
Use the code examples in the `terraform_gcp` or `terraform_azure` folders to see how this is done. Basically there are two steps. First is a remote exec which forces Terraform to wait until SSH is running to run Ansible. This can be anything, even an `echo "Hello World"` command.
6+
Use the code examples in the `terraform_gcp` or `terraform_azure` folders to see how this is done. Basically there are two steps. First is a remote exec which forces Terraform to wait until SSH is running to run Ansible. This can be anything, even an `echo "Hello World"` command. Then we execute an `ansible-playbook` command from the same machine where we ran `terraform apply`.
77

88
### With `remote_exec`
99
The code example in the `terraform_gcp` directory has code for remote exec commented out. You can comment out the local_exec code and run this to have Ansible run on the remote host. With this method we first copy our playbook to the remote host, then we install and run Ansible locally there.

0 commit comments

Comments
 (0)