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
 
<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 
> <mailto: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.

Reply via email to