blob: e1c1ee6f2821eff4739a108bca0bb6038a6a8e5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
- name: Register system with Red Hat Subscription Manager (without Activation Key)
community.general.redhat_subscription:
username: "{{ guest_configure_rhsm_username }}"
password: "{{ guest_configure_rhsm_password }}"
state: present
when: guest_configure_rhsm_activation_key | length == 0
- name: Register system with Red Hat Subscription Manager (with Activation Key)
community.general.redhat_subscription:
username: "{{ guest_configure_rhsm_username }}"
password: "{{ guest_configure_rhsm_password }}"
activationkey: "{{ guest_configure_rhsm_activation_key }}"
state: present
when: guest_configure_rhsm_activation_key | length > 0
|