Hi John.  Thanks for the reply.  Let me explain and clarify a little more.

I have a load balancer that has several virtual services or urls that have
been created on the load balancer.  That load balancer is also responsible
for managing or housing all of the certs for those virtual services.  Right
now, there are currently over a 100 plus certs.  I needed a way to query
the load balancer to get a list of those certs.  I'm able to run my current
playbook but it's only pulling a select few in a json format. I'm not if I
need to add another module to my playbook to get the entire list or if I
need to do some type of loop to get  the remaining list.

Each certificate contains the certificate name, the status, common name,
issuer name, algorithm, self signed, and the expiration date.  When I view
the information from the load balancer itself, it's about 12 pages.  When I
run my playbook, I'm not even close to that number of pages being retrieved.

Hope this helps.

Thanks.

On Wed, Jul 8, 2020 at 12:15 PM John Westcott <john.westcott...@redhat.com>
wrote:

> I’m not sure if I am understanding the question correctly but if you are
> trying to get the SSL certificate that is being served through a port you
> could look at the get_certificate module
> https://docs.ansible.com/ansible/latest/modules/get_certificate_module.html#get-certificate-module
> .
>
>
> -John
>
>
> On Jul 7, 2020, at 6:57 PM, FallGuy74 <hill74l...@gmail.com> wrote:
>
> Hi everyone.
>
> I've been working on an ansible playbook that retrieves SSL and Certificate 
> data from a load balancer.  I've been able to run the
>
> playbook with success however, I'm not getting all the expected data.  Below 
> is a sample of my playbook:
>
> gather_facts: false
>   hosts: local
>   vars:
>   env: dev
>
>   tasks:
>
>    name: Get SSL Cert Info
>      avi_api_session
>      controller:
>      tenant:
>      timeout: 1000
>      path: sslkeyandcertificate
>      http_method: get
>      username:
>    register: json
>
>    debug: var=json
>
>
> The data needed is about 10-12 pages.  I'm only getting back a full page of 
> data (if that).  My goal is to pull back all the remaining pages.  At this 
> point, I'm not sure how to do that.
>
> What have I tried?  I've altered my script several different times and have 
> created several variations of it.  It either didn't work or it worked but did 
> not produce the intended output.
>
> Any help at this point would be greatly appreciated it.  Thanks.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-devel/84c2d020-74b4-42b8-b9a8-a92b5bc141cbo%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-devel/84c2d020-74b4-42b8-b9a8-a92b5bc141cbo%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-devel/B5BF43D8-05AC-489C-AEAA-34D0FF84519A%40redhat.com
> <https://groups.google.com/d/msgid/ansible-devel/B5BF43D8-05AC-489C-AEAA-34D0FF84519A%40redhat.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Rod Hill
972-603-5490

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/CALq882xzK5OjZ9O7bArR78%3DB7T2nniDaz%2BXgLc2i_xumpYe2Dg%40mail.gmail.com.

Reply via email to