Replace the shell provisioner used previously with the more succinct Ansible equivalent. Bake a new image and update the one in use in your autoscaling group. As such, learn about an update and a rollout.
- [Instructor] Now that we've hooked in Ansible,…we can use it to install our basic website…instead of calling individual shell commands directly.…We won't go into too much detail about…how to work with Ansible,…I've already covered that in the previous video.…Lots of roles are provided by the community…and made available on the Ansible Galaxy.…So here we're going to use the Official NGINX Ansible role…to install it.…Now these go into a file called the requirements.yml,…so that is the same bit that we have mentioned over here,…so that's the nginxinc part of the command here.…
This file is provided for you.…And what we do is, we ask Ansible to download this locally,…so we can use this role.…And we do that by typing ansible-galaxy install hyphen r…and then the name of the file which is requirements.yml.…And what that will do is go…and download the NGINX role for us,…brilliant, installed successfully.…So here we have the NGINX yml file…that I have written, and you can grab this…from the exercise files, and I'll just explain…
- What is Packer?
- Baking a website image for EC2
- Provisioning with a configuration management tool
- Building hardened images
- Building a pipeline for Packer images