find image
authorLorin Hochstein <lhochstein@netflix.com>
Sat, 11 Feb 2017 06:05:17 +0000 (22:05 -0800)
committerLorin Hochstein <lhochstein@netflix.com>
Sat, 11 Feb 2017 06:05:17 +0000 (22:05 -0800)
ch12/playbooks/image.yml [new file with mode: 0644]

diff --git a/ch12/playbooks/image.yml b/ch12/playbooks/image.yml
new file mode 100644 (file)
index 0000000..1257a1f
--- /dev/null
@@ -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
+