From 751ce2a1736463d18a120efbf2a06ad702235b51 Mon Sep 17 00:00:00 2001 From: Tyler Hale Date: Tue, 17 Jan 2023 09:52:55 -0700 Subject: [PATCH] Fixing epel --- hosts.yml | 20 ++++++++++++++------ roles/base/tasks/redhat_epel.yml | 2 +- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/hosts.yml b/hosts.yml index ce9a649..5f91727 100644 --- a/hosts.yml +++ b/hosts.yml @@ -3,15 +3,23 @@ prod: hosts: - prod-svr01: - ansible_host: 192.168.0.10 - base_core_hostname: "prod-svr01" - prod-svr02: - ansible_host: 192.168.0.11 + ws01: + ansible_host: 10.10.10.14 + base_core_hostname: "hltk-ws1" + ws02: + ansible_host: 10.10.10.18 + base_core_hostname: "hltk-ws2" + ws03: + ansible_host: 10.10.10.20 + base_core_hostname: "hltk-ws3" + ws04: + ansible_host: 10.10.10.19 + base_core_hostname: "hltk-ws4" vars: ansible_user: haletek - ansible_ssh_common_args: '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' # Disable host key checking for re-imaging + ansible_ssh_common_args: '-o ProxyCommand="ssh dc1-bastion -W %h:%p 2>/dev/null" -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' # Disable host key checking for re-imaging w/ jump box + #ansible_ssh_common_args: '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' # Disable host key checking for re-imaging base_core_ssh_permit_password_authentication: true # Enable base_core_root_ca_url: "http://cert.haletek.cloud/PKI/RootCA.cer" # Define the Root CA to be installed base_core_root_ca_basename: "HLTKCL_RootCA" # Define the name of the Root CA to be installed diff --git a/roles/base/tasks/redhat_epel.yml b/roles/base/tasks/redhat_epel.yml index 5dea61b..9cf395f 100644 --- a/roles/base/tasks/redhat_epel.yml +++ b/roles/base/tasks/redhat_epel.yml @@ -6,4 +6,4 @@ name: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm" state: present disable_gpg_check: True - when: ansible_distribution == 'RedHat' or ansible_distribution == 'AlmaLinux' + when: ansible_distribution == 'RedHat' or ansible_distribution == 'AlmaLinux' or ansible_distribution == 'Rocky'