Is there a way you can send a mail with-in assert when  any_errors_fatal: 
true ?   I have tried to do it by using set_fact still, but still not 
having success in sending the disk limit size via email.  



- name: Assert that the disk limit ({{ disk_limit }}) has not exceeded
  assert:
    that: ( (disk_usage|float)/mount.size_total ) < disk_limit|float
    msg: "Disk usage {{ disk_usage_ratio_s }} exceeds {{ disk_limit_ratio_s 
}}"
  any_errors_fatal: true

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/26e18b44-7ea9-44fb-95a0-4ff31cd544cf%40googlegroups.com.

Reply via email to