
Depends-On: Ifa876b3e5f89258f40055fa7ce03f5e9c601771c Change-Id: I806c76bff85210f74cd23c29835f41c174b8c960
14 lines
365 B
YAML
14 lines
365 B
YAML
---
|
|
|
|
- name: subscribe to Red Hat repositories
|
|
become: yes
|
|
redhat_subscription:
|
|
state: present
|
|
activationkey: '{{ redhat_activationkey or omit }}'
|
|
username: '{{ redhat_username or omit }}'
|
|
password: '{{ redhat_password or omit }}'
|
|
auto_attach: yes
|
|
when:
|
|
- ansible_distribution == 'RedHat'
|
|
- redhat_activationkey or redhat_username
|