Ansible: Migrating from ec2.py to aws_ec2 `ec2.py` was deprecated and replaced with `aws_ec2` for Ansible in 2021. This shows you how to replace the old script with the new Ansible plugin.