I'm trying to capture the ps elapsed time format for long running Siteminder process from remote server using Ansible playbook. The output of elapsed time is in the format of [[dd-]hh:]mm:ss. Need help to convert this time into seconds.
- name: Check Siteminder server status on remote host local_action: shell ssh -q -o BatchMode=yes -o StrictHostKeyChecking=no user@{{ remoteserver }} "ps -eo args,etime | grep smpolicysrv | grep -v grep" 2>/dev/null register: status delegate_to: localhost become_user: awx become: no ignore_errors: yes STANDARD OUT smpolicysrv 154-10:46:31 -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7a8479c3-1eae-4dd9-ac06-98e91b2124e1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.