Skip to content

Commit

Permalink
aws modules: fix examples to use FQCN for builtin modules/plugins (an…
Browse files Browse the repository at this point in the history
  • Loading branch information
Andersson007 authored and goneri committed Sep 21, 2022
1 parent 44817d8 commit 1051f15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/modules/ec2_eip.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
register: eip
- name: output the IP
debug:
ansible.builtin.debug:
msg: "Allocated IP is {{ eip.public_ip }}"
- name: provision new instances with ec2
Expand All @@ -162,7 +162,7 @@
register: eip
- name: output the IP
debug:
ansible.builtin.debug:
msg: "Allocated IP inside a VPC is {{ eip.public_ip }}"
- name: allocate eip - reuse unallocated ips (if found) with FREE tag
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/ec2_eip_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
instance-id: i-123456789
register: my_vm_eips
- debug:
- ansible.builtin.debug:
msg: "{{ my_vm_eips.addresses | json_query(\"[?private_ip_address=='10.0.0.5']\") }}"
- name: List all EIP addresses for several VMs.
Expand All @@ -69,7 +69,7 @@
# Set the variable eip_alloc to the value of the first allocation_id
# and set the variable my_pub_ip to the value of the first public_ip
- set_fact:
- ansible.builtin.set_fact:
eip_alloc: my_vms_eips.addresses[0].allocation_id
my_pub_ip: my_vms_eips.addresses[0].public_ip
Expand Down

0 comments on commit 1051f15

Please sign in to comment.