Adding support for RHEL subscription setup

This commit is contained in:
Tyler Hale 2022-07-08 05:47:50 -06:00
parent c77ccef1f1
commit bc4845d87f
Signed by: Tyler
GPG key ID: C7CC4B910D88EF96
2 changed files with 18 additions and 0 deletions

View file

@ -64,3 +64,13 @@ base_core_root_ca_url: ""
# Enables the installation of the cockpit web management package(s)
base_core_web_management: false
# ******
# RedHat
# ******
# RHEL Subscription
# =============
base_redhat_subscription_activationkey: ""
base_redhat_subscription_org_id: ""

View file

@ -19,6 +19,14 @@
tags:
- always
- name: Attach subscription
redhat_subscription:
state: present
activationkey: "{{ base_redhat_subscription_activationkey }}"
org_id: "{{ base_redhat_subscription_org_id }}"
pool: '^(Red Hat Enterprise Server|Red Hat Virtualization)$'
when: ansible_distribution == 'RedHat' and base_redhat_subscription_org_id != "" and base_redhat_subscription_activationkey != ""
- name: "*** MOTD Configuration ***"
include_tasks:
file: core_motd.yml