On Fri, Nov 7, 2014 at 6:14 PM, John Oliver <jno...@gmail.com> wrote: > There are some tasks I run to collect info, and if they fail, oh well... I > have ignore_errors: true in there. But sometimes there could be a lot of > output from a "failed" task that I just don't want to see. How can I tell > my task to not echo back any output to stdout? >
Could this example [1] work? - name: secret task shell: /usr/bin/do_something --value={{ secret_value }} no_log: True # Maybe conditional, when an error arises? register: result no_log: True when: result|failed [1] http://docs.ansible.com/faq.html#how-do-i-keep-secret-data-in-my-playbook -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2Bzcas0MUbgXHVKYyzHiQ%3DOaFUOy%2BYK5yXCKgrMN2MXTrz9zAA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.