Groups
Groups
Sign in
Groups
Groups
Ansible Project
Conversations
About
Send feedback
Help
Ignore Errors and Write Log Message?
14 views
Skip to first unread message
Dennis Benzinger | SAP Hybris
unread,
Dec 16, 2015, 8:26:50 AM
12/16/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
Hello Group,
how can I ignore errors for one task (
ignore_errors: yes
) and if there was an error write
a log message (e.g.
debug
task
) ?
Thanks,
Dennis Benzinger | SAP Hybris
Brian Coca
unread,
Dec 16, 2015, 8:32:25 AM
12/16/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
- task1:
ignore_errors: yes
register: task1_results
- debug: msg='lola'
when: task1_results|failed
--
Brian Coca
Reply all
Reply to author
Forward
0 new messages