diff options
author | Vinny Valdez <vvaldez@redhat.com> | 2016-04-08 18:44:23 -0500 |
---|---|---|
committer | Vinny Valdez <vvaldez@redhat.com> | 2016-04-20 09:28:48 -0500 |
commit | 39f973fcfd40fde18f5e92259d05e4ba6b30e22e (patch) | |
tree | 20e81525c6aff6a2d033d2e0c1f39453dfc7a426 /roles/subscription-manager/pre_tasks | |
parent | 71f4817263a21b6e2062b35928ebfab373d26278 (diff) | |
download | openshift-39f973fcfd40fde18f5e92259d05e4ba6b30e22e.tar.gz openshift-39f973fcfd40fde18f5e92259d05e4ba6b30e22e.tar.bz2 openshift-39f973fcfd40fde18f5e92259d05e4ba6b30e22e.tar.xz openshift-39f973fcfd40fde18f5e92259d05e4ba6b30e22e.zip |
Remove vars_prompt, add info to README to re-enable and for ansible-vault
Diffstat (limited to 'roles/subscription-manager/pre_tasks')
-rw-r--r-- | roles/subscription-manager/pre_tasks/pre_tasks.yml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/roles/subscription-manager/pre_tasks/pre_tasks.yml b/roles/subscription-manager/pre_tasks/pre_tasks.yml index 31441785e..8a4d8d06d 100644 --- a/roles/subscription-manager/pre_tasks/pre_tasks.yml +++ b/roles/subscription-manager/pre_tasks/pre_tasks.yml @@ -1,5 +1,5 @@ --- -- name: Set password fact +- name: "Set password fact" set_fact: rhsm_password: "{{ rhsm_password }}" no_log: true @@ -8,11 +8,11 @@ - rhsm_password is not none - rhsm_password|trim != '' -- name: Initialize Subscription Manager fact +- name: "Initialize Subscription Manager fact" set_fact: rhsm_register: true -- name: Determine if Subscription Manager should be used +- name: "Determine if Subscription Manager should be used" set_fact: rhsm_register: false when: @@ -23,7 +23,7 @@ - rhsm_activationkey is undefined or rhsm_activationkey is none or rhsm_activationkey|trim == '' - rhsm_pool is undefined or rhsm_pool is none or rhsm_pool|trim == '' -- name: Validate Subscription Manager organization is set +- name: "Validate Subscription Manager organization is set" fail: msg="Cannot register to a Satellite server without a value for the Organization via 'rhsm_org'" when: - rhsm_org is undefined or rhsm_org is none or rhsm_org|trim == '' @@ -32,14 +32,14 @@ - rhsm_satellite|trim != '' - rhsm_register -- name: Validate Subscription Manager authentication is defined - fail: msg="Cannot register without ('rhsm_username' and 'rhsm_password') or 'rhsm_activationkey' variables set" +- name: "Validate Subscription Manager authentication is defined" + fail: msg="Cannot register without ('rhsm_username' and 'rhsm_password') or 'rhsm_activationkey' variables set. See the README.md for details on securely prompting for a password" when: - (rhsm_username is undefined or rhsm_username is none or rhsm_username|trim == '') or (rhsm_password is undefined or rhsm_password is none or rhsm_password|trim == '') - rhsm_activationkey is undefined or rhsm_activationkey is none or rhsm_activationkey|trim == '' - rhsm_register -- name: Validate activation key and Hosted are not requested together +- name: "Validate activation key and Hosted are not requested together" fail: msg="Cannot register to RHSM Hosted with 'rhsm_activationkey'" when: - rhsm_satellite is undefined or rhsm_satellite is none or rhsm_satellite|trim == '' |