Perhaps the XML module is an option: https://docs.ansible.com/ansible/latest/collections/community/general/xml_module.html
> On Feb 3, 2022, at 3:13 PM, Amarpreet Singh <[email protected]> wrote: > > Looking for help to convert XML output of a ssl certificate and get date out > of it. > Then compare and check if that cert has expired or not. > > output > > "stdout": "{\"not-valid-after\": \"Apr 20 17:36:03 2022 GMT\"}", > "stdout_lines": [ > "{\"not-valid-after\": \"Apr 20 17:36:03 2022 GMT\"}" > ], > "stdout_xml": "<not-valid-after>Apr 20 17:36:03 2022 > GMT</not-valid-after>\n" > > I am looking to change the red highlighted line in datetime format. > > > -- > 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] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/26e20e6e-5c9b-45f6-96e4-f523f5fa8534n%40googlegroups.com > > <https://groups.google.com/d/msgid/ansible-project/26e20e6e-5c9b-45f6-96e4-f523f5fa8534n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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/1A1A690B-A27C-4453-BE38-3C3DCE7835EF%40gmail.com.
