Commit 4569713d by Michael DeHaan

Update register_logic example

parent 777dbc10
...@@ -23,6 +23,11 @@ ...@@ -23,6 +23,11 @@
# here we run the next action only if the previous grep returned true # here we run the next action only if the previous grep returned true
- action: shell echo "motd contains the word hi" - action: shell echo "motd contains the word hi"
only_if: "${motd_result.rc} == 0" when: motd_result.rc == 0
# alternatively:
- action: shell echo "motd contains the word hi"
when: motd_result.stdout.find('hi') != -1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment