You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- name: Createhosts: localhostconnection: localgather_facts: falsevars:
ec2_ranges: "{{ lookup('aws_service_ip_ranges', region='ap-southeast-2', service='EC2', wantlist=True) }}"tasks:
- name: "use list return option and iterate as a loop"debug: msg="{% for cidr in ec2_ranges %}{{ cidr }} {% endfor %}"
- name: "Pull S3 IP ranges, and print the default return style"debug:
msg: "{{ query('amazon.aws.aws_service_ip_ranges', region='eu-west-2', service='S3') }}"
Expected Results
I get the IP of EC2_INSTANCE_CONNECT
Actual Results
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'PLAY [Create] *******************************************************************************************************************************************************************************************************************************TASK [Pull S3 IP ranges, and print the default return style] ********************************************************************************************************************************************************************************objc[22756]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.objc[22756]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.ERROR! A worker was found in a dead state
Code of Conduct
I agree to follow the Ansible Code of Conduct
The text was updated successfully, but these errors were encountered:
Summary
I want to get the
EC2_INSTANCE_CONNECT
IPs, but all I get is an errorIssue Type
Bug Report
Component Name
aws_service_ip_ranges
Ansible Version
Collection Versions
AWS SDK versions
Configuration
OS / Environment
run playbook on MacOS 14.6.1 (23G93) to localhost
Steps to Reproduce
Expected Results
I get the IP of
EC2_INSTANCE_CONNECT
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: