├── .gitignore ├── README.md ├── ansible ├── ansible.cfg ├── dynamic_inventory.sh ├── playbooks │ ├── db.yml │ └── web.yml ├── site.yml └── terraform.py └── terraform ├── backend.tf.example ├── data.tf ├── main.tf ├── modules ├── base │ ├── main.tf │ ├── outputs.tf │ └── variables.tf ├── db │ ├── main.tf │ ├── outputs.tf │ └── variables.tf ├── key_pair │ ├── main.tf │ ├── outputs.tf │ └── variables.tf └── web │ ├── main.tf │ ├── outputs.tf │ └── variables.tf ├── outputs.tf ├── terraform.tfvars.example └── variables.tf /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/README.md -------------------------------------------------------------------------------- /ansible/ansible.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/ansible/ansible.cfg -------------------------------------------------------------------------------- /ansible/dynamic_inventory.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/ansible/dynamic_inventory.sh -------------------------------------------------------------------------------- /ansible/playbooks/db.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/ansible/playbooks/db.yml -------------------------------------------------------------------------------- /ansible/playbooks/web.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/ansible/playbooks/web.yml -------------------------------------------------------------------------------- /ansible/site.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/ansible/site.yml -------------------------------------------------------------------------------- /ansible/terraform.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/ansible/terraform.py -------------------------------------------------------------------------------- /terraform/backend.tf.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/terraform/backend.tf.example -------------------------------------------------------------------------------- /terraform/data.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/terraform/data.tf -------------------------------------------------------------------------------- /terraform/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/terraform/main.tf -------------------------------------------------------------------------------- /terraform/modules/base/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/terraform/modules/base/main.tf -------------------------------------------------------------------------------- /terraform/modules/base/outputs.tf: -------------------------------------------------------------------------------- 1 | output "sg_id" { 2 | value = "${aws_security_group.base_linux.id}" 3 | } 4 | -------------------------------------------------------------------------------- /terraform/modules/base/variables.tf: -------------------------------------------------------------------------------- 1 | variable env { 2 | description = "Environment prefix" 3 | } 4 | -------------------------------------------------------------------------------- /terraform/modules/db/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/terraform/modules/db/main.tf -------------------------------------------------------------------------------- /terraform/modules/db/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/terraform/modules/db/outputs.tf -------------------------------------------------------------------------------- /terraform/modules/db/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/terraform/modules/db/variables.tf -------------------------------------------------------------------------------- /terraform/modules/key_pair/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/terraform/modules/key_pair/main.tf -------------------------------------------------------------------------------- /terraform/modules/key_pair/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/terraform/modules/key_pair/outputs.tf -------------------------------------------------------------------------------- /terraform/modules/key_pair/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/terraform/modules/key_pair/variables.tf -------------------------------------------------------------------------------- /terraform/modules/web/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/terraform/modules/web/main.tf -------------------------------------------------------------------------------- /terraform/modules/web/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/terraform/modules/web/outputs.tf -------------------------------------------------------------------------------- /terraform/modules/web/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/terraform/modules/web/variables.tf -------------------------------------------------------------------------------- /terraform/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/terraform/outputs.tf -------------------------------------------------------------------------------- /terraform/terraform.tfvars.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/terraform/terraform.tfvars.example -------------------------------------------------------------------------------- /terraform/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/express42/terraform-ansible-example/HEAD/terraform/variables.tf --------------------------------------------------------------------------------