From 4bc89168720ab54f988a995e38ee6b0c8064ad00 Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Fri, 10 Feb 2017 22:18:27 -0800 Subject: [PATCH] just show one image --- ch12/playbooks/image.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ch12/playbooks/image.yml b/ch12/playbooks/image.yml index 1257a1f..77b0ce3 100644 --- a/ch12/playbooks/image.yml +++ b/ch12/playbooks/image.yml @@ -4,7 +4,10 @@ tasks: - name: find the image ec2_ami_find: - name: "ubuntu/images/ebs/ubuntu/xenial-16.04-amd64-server-*" + name: "ubuntu/images/ebs/ubuntu-trusty-14.04-amd64-server-*" + sort: name + sort_order: descending + sort_end: 1 register: ami - name: output image info debug: var=ami -- 2.44.0