Ansible get return value from tasks execution with Python Api

424 Views Asked by At

Is there a way to get the return values from the execution of a module?

For example https://docs.ansible.com/ansible/latest/modules/ec2_vpc_subnet_module.html

To get for example the vpc_id.

I am using the PlaybookExecutor but it only returns the status result of executing the playbook.

0

There are 0 best solutions below