-
Notifications
You must be signed in to change notification settings - Fork 122
/
Copy pathprep.yml
35 lines (33 loc) · 854 Bytes
/
prep.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
- name: 'Configure RHSM usernames/passwords'
hosts: localhost
tasks:
- block:
- pause:
prompt: 'Please enter your Red Hat Subscription username'
register: username
- set_fact:
rhsm_username: "{{ username.user_input }}"
tags:
- configure_rhsm
when:
- rhsm_register|default(False)
- rhsm_activationkey is undefined
- rhsm_org_id is undefined
- rhsm_username is undefined
- block:
- pause:
prompt: 'Please enter your Red Hat Subscription password'
echo: no
no_log: True
register: password
- set_fact:
rhsm_password: "{{ password.user_input }}"
no_log: True
tags:
- configure_rhsm
when:
- rhsm_register|default(False)
- rhsm_activationkey is undefined
- rhsm_org_id is undefined
- rhsm_password is undefined