From: Lorin Hochstein Date: Sat, 11 Feb 2017 06:05:17 +0000 (-0800) Subject: find image X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=dd51f33330527d03516c96e75f139a9d98acae02;p=ansiblebook.git find image --- 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 +