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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.