1
0
mirror of https://github.com/openshift/openshift-ansible-contrib.git synced 2026-02-05 09:45:58 +01:00

Fix to ami fail task condition

This commit is contained in:
Chris Callegari
2018-07-05 09:32:47 -04:00
parent b78ba93494
commit 613a507b6c

View File

@@ -26,7 +26,7 @@
debug:
msg: "{{ notice.split('\n') }}"
when: ec2ami_unformatted.changed
failed_when: "'ami-' not in ec2ami.stdout"
failed_when: ( ec2ami.stdout == "" ) or ( "'ami-' not in ec2ami.stdout" )
- name: 'Set fact: ec2ami'
set_fact: