Check if Ansible playbook is running on an EC2 instance
In one of my Ansible playbooks I needed to only execute a couple of tasks if they were running on an EC2 instance.
In one of my Ansible playbooks I needed to only execute a couple of tasks if they were running on an EC2 instance.
This is a short recap of how I managed to lock myself out of the root account of an Amazon EC2 Ubuntu instance and how I gained control again.