blob: 50af6909011fb67aabb3cb6e1e7438fc92ae1c30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
- name: Register guest with Red Hat Subscription Manager (username/password)
community.general.redhat_subscription:
username: "{{ guest_configure_rhsm_username }}"
password: "{{ guest_configure_rhsm_password }}"
state: present
when:
- (guest_configure_rhsm_username | length > 0) and (guest_configure_rhsm_password | length > 0)
- (guest_configure_rhsm_activation_key | length == 0) and (guest_configure_rhsm_org_id | length == 0)
- name: Register guest with Red Hat Subscription Manager (org_id/activation_key)
community.general.redhat_subscription:
org_id: "{{ guest_configure_rhsm_org_id }}"
activationkey: "{{ guest_configure_rhsm_activation_key }}"
state: present
when:
- (guest_configure_rhsm_username | length == 0) and (guest_configure_rhsm_password | length == 0)
- (guest_configure_rhsm_activation_key | length > 0) and (guest_configure_rhsm_org_id | length > 0)
|