From dd51f33330527d03516c96e75f139a9d98acae02 Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Fri, 10 Feb 2017 22:05:17 -0800 Subject: [PATCH] find image --- ch12/playbooks/image.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ch12/playbooks/image.yml diff --git a/ch12/playbooks/image.yml b/ch12/playbooks/image.yml new file mode 100644 index 0000000..1257a1f --- /dev/null +++ b/ch12/playbooks/image.yml @@ -0,0 +1,11 @@ +- name: find xenial image + hosts: localhost + gather_facts: False + tasks: + - name: find the image + ec2_ami_find: + name: "ubuntu/images/ebs/ubuntu/xenial-16.04-amd64-server-*" + register: ami + - name: output image info + debug: var=ami + -- 2.44.0