Hi all, There are a few posts going around on this but I’m a wee bit stick
The following example worked on 1.2
-
name: “check for gelf download”
shell: /usr/bin/test -f /opt/mx/bin/logback-gelf-0.9.6p2-jar-with-dependencies.jar
register: result
ignore_errors: true -
name: “download gelf”
shell: cd /opt/mx/bin && wget http://111.111.111.111/files/logback-gelf-0.9.6p2-jar-with-dependencies.jar
when_failed: $result
After a 1.3 upgrade it throughs the following.
fatal: [rtui-01] => Conditional expression must evaluate to True or False: is_failed($result)
I attempted to replace with when: $result == 0. Received a sad panda with that too. Any clue what I’m doing wrong?