diff --git a/README.md b/README.md index 7b3b7e166ec3a7e2f00ee9ea718310e3df13806e..01f1775474eac17ae3e0697ddc421437b8417f16 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,13 @@ # Terrafrom Demo +At this repo can be found an example of creating basic cloud infrastructure with Terraform and starting web server with ansible + +## How to deploy +* Create [applicatin credentials](https://cloud.gitlab-pages.ics.muni.cz/documentation/cloud/cli/#getting-credentials) for your project and copy them to Terrform catalog +* Initialise your Terraform backend with `terraform init` +* Run Terraform with `terraform apply` + +Terraform will pripare network infrastructure and create a VM. Then ansible will install web server with basic configuration +* go to ansible catalog +* run `ansible-playbook install_web_server.yml -i ansible_hosts` +* try to open web page