Hi, Thanks for the reply. This error occurs even for gather_facts command.
ansible all -m gather_facts --tree /tmp/facts [WARNING]: * Failed to parse /home/ejagpat/mps/SOURCE_TTCN/mec_admin/script/ansibleSource/k8s.yml with k8s plugin: HTTPSConnectionPool(host='XXXX.XXX.XXX.XX', port=443): Max retries exceeded with url: /k8s/clusters/c-nmgnf/version (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)'),)) [WARNING]: Unable to parse /home/ejagpat/mps/SOURCE_TTCN/mec_admin/script/ansibleSource/k8s.yml as an inventory source [WARNING]: No inventory was parsed, only implicit localhost is available [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' Disabling certificate check also didnot work. Please suggest other methods, i give a try. Thanks, Jagannath On Tuesday, February 15, 2022 at 10:08:18 AM UTC+1 [email protected] wrote: > Your error is clearly about HTTPS certificate verification. If that > fails, disable it. > You haven't shared any playbook code, so we don't know what task > generated this error, so we can't tell more. > > On Fri, 11 Feb 2022 at 15:55, Jagannath Pattar > <[email protected]> wrote: > > > > Hi Ansible team, > > > > We are facing the certificate verification issue while executing > ansible-playbook. > > Could you please suggest how to resolve this issue? > > > > ERROR Logs: > > ---------- > > 10:36:50 yml with k8s plugin: > > 10:36:50 HTTPSConnectionPool(host='access-XXXXX-ipv4.XXX.XXX.XXXX.se', > > 10:36:50 port=443): Max retries exceeded with url: > /k8s/clusters/c-nmgnf/version (Caused > > 10:36:50 by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] > certificate verify > > 10:36:50 failed (_ssl.c:661)'),)) > > 10:36:50 [WARNING]: Unable to parse > /proj/MPS/MPS_CI_REPO/Jenkins_Slave/seliius21127/wor > > 10:36:50 > kspace/runAnsiblePlaybook_CN/SOURCE_TTCN/mec_admin/script/ansibleSource/k8s.yml > > > > > > Tried followings but did not work: > > ---------------------------------- > > host_key_checking = False > > > > Thanks, > > Jagannath > > > > > > -- > > 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/88e47d8c-880d-4fa6-b721-64b62f3c3192n%40googlegroups.com > . > > > > -- > Dick Visser > Trust & Identity Service Operations Manager > GÉANT > -- 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/387ef5ad-d90d-4612-891a-a162e49a506fn%40googlegroups.com.
