Why is validate_certs not Working with Packages?

Solution Verified - Updated -

Issue

  • Need to install packages from our central YUM repository without verifying the SSL certificate. The Ansible task looks like the following (with validate_certs: no):
- name: install latest apple and mango packages
  yum:
    name: "{{ item }}"
    state: latest
    validate_certs: no
  with_items:
    - apple
    - mango

Environment

  • Red Hat Ansible Engine 2.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content