This article – “Using Ansible to Bootstrap My Work Environment Part 4” is pure gold for anyone trying to figure out all the moving parts needed to automate the provisioning and configuration of the Amazon EC2 instance with Ansible.
Sure, some bits are easier than the other, but it takes time to go from one step to another.  In this article, you have everything you need, including the provisioning Ansible playbook and variables, cloud-init bits, and more.
I’ve printed and laminated my copy. Â It’s on the wall now. Â It will provide me with countless hours of joy during the upcoming Christmas season.
Well I know this post is old but I recently moved from google analytics to self hosted plausible. I’m looking at my logs closely and happened to come across someone landing in my page from this one. Thanks so much for the compliment. It brightened my day and I’m glad you found the post useful