Just add something like this:
- name: Mail Results
mail:
to: who...@me.com
from: ansibl...@me.com
subject: "No Updates applied to {{inventory_hostname}} today"
body: "No updates were applied"
when:
- variable= false
Hello All,
Finally got my axw running reliably. Using Ubuntu 19.10.
I use the yum module (ansible) with success for listing, updating, etc.
I hope this question is not out-of-scope for the awx forum.
I can get the status of the yum module (like changed, failed, etc
I register the yum results in a variable, and can get results like yum_status.changed.
I want to send an email base on the status: when changed is "false"
Any tips on how to do this?
Thanks,
ewholz
--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-project+unsubscribe@googlegroups.com.
To view this discussion on the web visit