Fail if ami not found
authorLorin Hochstein <lhochstein@netflix.com>
Sat, 11 Feb 2017 06:48:28 +0000 (22:48 -0800)
committerLorin Hochstein <lhochstein@netflix.com>
Sat, 11 Feb 2017 06:48:51 +0000 (22:48 -0800)
ch12/playbooks/image.yml

index a6615cf..25316e1 100644 (file)
@@ -8,6 +8,7 @@
         sort: name
         sort_order: descending
         sort_end: 1
+        no_result_action: fail
       register: ami
     - name: output image info
       debug: var=ami