Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiment #1

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add new playbook
LeonSK116 committed Oct 8, 2023
commit 9fd46eb1e2a57baab29598698120b2743e835abc
17 changes: 17 additions & 0 deletions aws/ami_info.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
- name: List AWS AMIs with AMI IDs
hosts: localhost
gather_facts: no
# vars:
# ami_di:
# aws_region:
tasks:
- name: Gather AWS AMI facts
amazon.aws.ec2_ami_info:
image_ids: "{{ ami_id }}"
region: "{{ aws_region }}"
register: ami_facts

- name: Display AMIs with their IDs
debug:
var: ami_facts.ami_ids