fix broken check of task success flag

The line in step-07 playbook,
    when_failed: $result
was not working with ansible 1.3.

Updated this to use the "when:" keyword for defining conditional
execution of a task