Get Launch Configuration name of the desired Auto Scaling Group, it will return an asg_lc_name fact.
asg.name
: Auto Scaling Group nameasg.region
: AWS region
- hosts: localhost
connection: local
gather_facts: no
roles:
- get-ami-of-autoscaling-group
GPL