--- | |
- hosts: local | |
connection: local | |
gather_facts: false | |
tasks: | |
- ec2_vpc_net_info: | |
region: eu-central-1 | |
filters: | |
"tag:environment": production # "{{ vardata.environment }}" | |
register: output | |
- debug: | |
var: output | |
- set_fact: | |
vpc_id: "{{ output.vpcs.id }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment