I have a ansible task which runs a python script to get the cron schedule time as follows
- name: check the expiry of node certificates using python script