I am trying to update my ec2 instance tags with OS details using Ansible.
I am able to achieve it by using the below code. Is there a better/efficient way to do this.