Cleaning up the RHEL subscription

This commit is contained in:
Tyler Hale 2022-08-22 13:14:54 -06:00
parent ecd42f71a9
commit fe453157ba
Signed by: Tyler
GPG key ID: C7CC4B910D88EF96

View file

@ -19,13 +19,13 @@
tags:
- always
- name: Attach subscription
- name: Attach RHEL 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 != ""
when: ansible_distribution == 'RedHat' and (base_redhat_subscription_org_id != "" and base_redhat_subscription_activationkey != "")
- name: "*** MOTD Configuration ***"
include_tasks: