From: Lorin Hochstein Date: Sat, 11 Feb 2017 06:18:27 +0000 (-0800) Subject: just show one image X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=4bc89168720ab54f988a995e38ee6b0c8064ad00;p=ansiblebook.git just show one image --- 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