Is there a way you can send a mail with-in assert when ihave 
any_errors_fatal: true ?   I have tried by set_fact still not having 
success in send 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/234d8cdc-971e-4b20-80b6-df8401f27e93%40googlegroups.com.

Reply via email to