This project aims to provide an automated setup for provisioning and configuring a single WordPress server using Terraform and Ansible.
Before getting started, make sure you have the following prerequisites installed on your machine:
- Terraform (version X.X.X)
- Ansible (version X.X.X)
To get started with this project, follow the steps below:
- Clone this repository to your local machine.
- Navigate to the project directory:
cd wp-iac
. - Update the
variables.tf
file with your desired configuration. - Run
terraform init
to initialize the Terraform environment. - Run
terraform plan
to review the infrastructure changes. - Run
terraform apply
to provision the infrastructure. - Access your WordPress site by navigating to the server's public IP address in your web browser.
The variables.tf
file contains the configurable options for this project. Update the values according to your requirements before running Terraform.
To clean up and destroy the provisioned infrastructure, run terraform destroy
in the project directory.