├── Chapter02 ├── phonebook.yml ├── playbook.yml └── roles │ ├── ec2 │ ├── tasks │ │ └── main.yml │ └── vars │ │ └── main.yml │ └── phonebook │ ├── files │ └── phone-book.service │ └── tasks │ └── main.yml ├── Chapter03 ├── aws.yml ├── ec2.ini ├── ec2.py ├── phonebook.yml └── roles │ ├── aws │ ├── files │ │ ├── hello_world.py │ │ ├── iam_admin.json │ │ ├── myfirstzip.zip │ │ ├── policy_lambda.json │ │ └── text.txt │ ├── tasks │ │ └── main.yml │ └── vars │ │ ├── main.yml │ │ └── secrets.yml │ └── phonebook │ ├── files │ └── phone-book.service │ ├── tasks │ └── main.yml │ └── templates │ └── config.py ├── Chapter04 ├── gce.py ├── phonebook.yml ├── playbook.yml └── roles │ ├── gce │ ├── files │ │ └── google-cloud-sdk.repo │ ├── tasks │ │ ├── configure_gcloud.yml │ │ └── main.yml │ ├── templates │ │ └── google-cloud-sdk.list │ └── vars │ │ ├── main.yml │ │ └── secrets.yml │ └── phonebook │ ├── files │ └── phone-book.service │ ├── tasks │ └── main.yml │ ├── templates │ └── config.py │ └── vars │ └── secrets.yml ├── Chapter05 ├── azure_rm.ini ├── azure_rm.py ├── phonebook.yml ├── playbook.yml └── roles │ ├── azure │ └── tasks │ │ └── main.yml │ └── phonebook │ ├── files │ └── phone-book.service │ └── tasks │ └── main.yml ├── Chapter06 ├── digital_ocean.ini ├── digital_ocean.py ├── phonebook.yml ├── playbook.yml └── roles │ ├── digitalocean │ ├── tasks │ │ └── main.yml │ └── vars │ │ ├── main.yml │ │ └── secrets.yml │ └── phonebook │ ├── files │ └── phone-book.service │ └── tasks │ └── main.yml ├── Chapter07 ├── docker.yml ├── phonebook.yml └── roles │ ├── docker │ ├── files │ │ ├── docker_compose │ │ │ ├── Dockerfile │ │ │ ├── app.py │ │ │ ├── docker-compose.yml │ │ │ └── requirements.txt │ │ └── docker_files │ │ │ ├── Dockerfile │ │ │ ├── index.html │ │ │ └── nginx.conf │ └── tasks │ │ └── main.yml │ └── phonebook │ ├── files │ └── phonebook-docker │ │ ├── Dockerfile │ │ ├── app.py │ │ ├── docker-compose.yml │ │ ├── init.sh │ │ ├── requirements.txt │ │ └── templates │ │ ├── index.html │ │ └── new.html │ └── tasks │ └── main.yml ├── Chapter08 ├── openstack.py ├── phonebook.yml ├── playbook.yml └── roles │ ├── openstack │ ├── tasks │ │ └── main.yml │ └── vars │ │ └── main.yml │ └── phonebook │ ├── files │ └── phone-book.service │ └── tasks │ └── main.yml ├── LICENSE └── README.md /Chapter02/phonebook.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter02/phonebook.yml -------------------------------------------------------------------------------- /Chapter02/playbook.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter02/playbook.yml -------------------------------------------------------------------------------- /Chapter02/roles/ec2/tasks/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter02/roles/ec2/tasks/main.yml -------------------------------------------------------------------------------- /Chapter02/roles/ec2/vars/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter02/roles/ec2/vars/main.yml -------------------------------------------------------------------------------- /Chapter02/roles/phonebook/files/phone-book.service: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter02/roles/phonebook/files/phone-book.service -------------------------------------------------------------------------------- /Chapter02/roles/phonebook/tasks/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter02/roles/phonebook/tasks/main.yml -------------------------------------------------------------------------------- /Chapter03/aws.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter03/aws.yml -------------------------------------------------------------------------------- /Chapter03/ec2.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter03/ec2.ini -------------------------------------------------------------------------------- /Chapter03/ec2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter03/ec2.py -------------------------------------------------------------------------------- /Chapter03/phonebook.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter03/phonebook.yml -------------------------------------------------------------------------------- /Chapter03/roles/aws/files/hello_world.py: -------------------------------------------------------------------------------- 1 | def my_handler(event, context): 2 | return "Hello World" 3 | 4 | -------------------------------------------------------------------------------- /Chapter03/roles/aws/files/iam_admin.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter03/roles/aws/files/iam_admin.json -------------------------------------------------------------------------------- /Chapter03/roles/aws/files/myfirstzip.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter03/roles/aws/files/myfirstzip.zip -------------------------------------------------------------------------------- /Chapter03/roles/aws/files/policy_lambda.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter03/roles/aws/files/policy_lambda.json -------------------------------------------------------------------------------- /Chapter03/roles/aws/files/text.txt: -------------------------------------------------------------------------------- 1 | Hello World for S3 2 | -------------------------------------------------------------------------------- /Chapter03/roles/aws/tasks/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter03/roles/aws/tasks/main.yml -------------------------------------------------------------------------------- /Chapter03/roles/aws/vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | aws_region: "us-east-1" 3 | -------------------------------------------------------------------------------- /Chapter03/roles/aws/vars/secrets.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter03/roles/aws/vars/secrets.yml -------------------------------------------------------------------------------- /Chapter03/roles/phonebook/files/phone-book.service: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter03/roles/phonebook/files/phone-book.service -------------------------------------------------------------------------------- /Chapter03/roles/phonebook/tasks/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter03/roles/phonebook/tasks/main.yml -------------------------------------------------------------------------------- /Chapter03/roles/phonebook/templates/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter03/roles/phonebook/templates/config.py -------------------------------------------------------------------------------- /Chapter04/gce.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter04/gce.py -------------------------------------------------------------------------------- /Chapter04/phonebook.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: tag_app 3 | roles: 4 | - phonebook 5 | -------------------------------------------------------------------------------- /Chapter04/playbook.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter04/playbook.yml -------------------------------------------------------------------------------- /Chapter04/roles/gce/files/google-cloud-sdk.repo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter04/roles/gce/files/google-cloud-sdk.repo -------------------------------------------------------------------------------- /Chapter04/roles/gce/tasks/configure_gcloud.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter04/roles/gce/tasks/configure_gcloud.yml -------------------------------------------------------------------------------- /Chapter04/roles/gce/tasks/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter04/roles/gce/tasks/main.yml -------------------------------------------------------------------------------- /Chapter04/roles/gce/templates/google-cloud-sdk.list: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter04/roles/gce/templates/google-cloud-sdk.list -------------------------------------------------------------------------------- /Chapter04/roles/gce/vars/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter04/roles/gce/vars/main.yml -------------------------------------------------------------------------------- /Chapter04/roles/gce/vars/secrets.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter04/roles/gce/vars/secrets.yml -------------------------------------------------------------------------------- /Chapter04/roles/phonebook/files/phone-book.service: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter04/roles/phonebook/files/phone-book.service -------------------------------------------------------------------------------- /Chapter04/roles/phonebook/tasks/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter04/roles/phonebook/tasks/main.yml -------------------------------------------------------------------------------- /Chapter04/roles/phonebook/templates/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter04/roles/phonebook/templates/config.py -------------------------------------------------------------------------------- /Chapter04/roles/phonebook/vars/secrets.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter04/roles/phonebook/vars/secrets.yml -------------------------------------------------------------------------------- /Chapter05/azure_rm.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter05/azure_rm.ini -------------------------------------------------------------------------------- /Chapter05/azure_rm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter05/azure_rm.py -------------------------------------------------------------------------------- /Chapter05/phonebook.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: first_vm 3 | roles: 4 | - phonebook 5 | -------------------------------------------------------------------------------- /Chapter05/playbook.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter05/playbook.yml -------------------------------------------------------------------------------- /Chapter05/roles/azure/tasks/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter05/roles/azure/tasks/main.yml -------------------------------------------------------------------------------- /Chapter05/roles/phonebook/files/phone-book.service: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter05/roles/phonebook/files/phone-book.service -------------------------------------------------------------------------------- /Chapter05/roles/phonebook/tasks/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter05/roles/phonebook/tasks/main.yml -------------------------------------------------------------------------------- /Chapter06/digital_ocean.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter06/digital_ocean.ini -------------------------------------------------------------------------------- /Chapter06/digital_ocean.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter06/digital_ocean.py -------------------------------------------------------------------------------- /Chapter06/phonebook.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: app 3 | roles: 4 | - phonebook 5 | -------------------------------------------------------------------------------- /Chapter06/playbook.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter06/playbook.yml -------------------------------------------------------------------------------- /Chapter06/roles/digitalocean/tasks/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter06/roles/digitalocean/tasks/main.yml -------------------------------------------------------------------------------- /Chapter06/roles/digitalocean/vars/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter06/roles/digitalocean/vars/main.yml -------------------------------------------------------------------------------- /Chapter06/roles/digitalocean/vars/secrets.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter06/roles/digitalocean/vars/secrets.yml -------------------------------------------------------------------------------- /Chapter06/roles/phonebook/files/phone-book.service: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter06/roles/phonebook/files/phone-book.service -------------------------------------------------------------------------------- /Chapter06/roles/phonebook/tasks/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter06/roles/phonebook/tasks/main.yml -------------------------------------------------------------------------------- /Chapter07/docker.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter07/docker.yml -------------------------------------------------------------------------------- /Chapter07/phonebook.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter07/phonebook.yml -------------------------------------------------------------------------------- /Chapter07/roles/docker/files/docker_compose/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter07/roles/docker/files/docker_compose/Dockerfile -------------------------------------------------------------------------------- /Chapter07/roles/docker/files/docker_compose/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter07/roles/docker/files/docker_compose/app.py -------------------------------------------------------------------------------- /Chapter07/roles/docker/files/docker_compose/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Ansible-2-Cloud-Automation-Cookbook/HEAD/Chapter07/roles/docker/files/docker_compose/docker-compose.yml -------------------------------------------------------------------------------- /Chapter07/roles/docker/files/docker_compose/requirements.txt: -------------------------------------------------------------------------------- 1 | flask 2 | redis 3 | -------------------------------------------------------------------------------- /Chapter07/roles/docker/files/docker_files/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:latest 2 | 3 | CMD ["sleep", "infinity;"] 4 | -------------------------------------------------------------------------------- /Chapter07/roles/docker/files/docker_files/index.html: -------------------------------------------------------------------------------- 1 |