summaryrefslogtreecommitdiffstats
path: root/roles/subscription-manager/pre_tasks
diff options
context:
space:
mode:
authorVinny Valdez <vvaldez@redhat.com>2016-04-05 18:17:36 -0500
committerVinny Valdez <vvaldez@redhat.com>2016-04-20 09:28:48 -0500
commit96aaa6df25774e05cda3e4a6f73b030ae989100a (patch)
tree65078d9c283e43e318c7c255a5ffe22fce460097 /roles/subscription-manager/pre_tasks
parent644f1e672c80bd10f34fabafcfe805c306e77b5e (diff)
downloadopenshift-96aaa6df25774e05cda3e4a6f73b030ae989100a.tar.gz
openshift-96aaa6df25774e05cda3e4a6f73b030ae989100a.tar.bz2
openshift-96aaa6df25774e05cda3e4a6f73b030ae989100a.tar.xz
openshift-96aaa6df25774e05cda3e4a6f73b030ae989100a.zip
Refactor use of rhsm_password to prevent display to CLI
Diffstat (limited to 'roles/subscription-manager/pre_tasks')
-rw-r--r--roles/subscription-manager/pre_tasks/pre_tasks.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/subscription-manager/pre_tasks/pre_tasks.yml b/roles/subscription-manager/pre_tasks/pre_tasks.yml
index dcd56b2b9..31441785e 100644
--- a/roles/subscription-manager/pre_tasks/pre_tasks.yml
+++ b/roles/subscription-manager/pre_tasks/pre_tasks.yml
@@ -1,4 +1,13 @@
---
+- name: Set password fact
+ set_fact:
+ rhsm_password: "{{ rhsm_password }}"
+ no_log: true
+ when:
+ - rhsm_password is defined
+ - rhsm_password is not none
+ - rhsm_password|trim != ''
+
- name: Initialize Subscription Manager fact
set_fact:
rhsm_register: true