Merge "WIP: Namespace host_otp variable"

This commit is contained in:
Zuul 2020-09-22 22:16:49 +00:00 committed by Gerrit Code Review
commit 3ff39d004b
2 changed files with 7 additions and 3 deletions

View File

@ -21,6 +21,10 @@ ok: [localhost] => {
]
}
```
If you're including this playbook via another ansible execution, you can fetch
the one-time password via the ``tripleo_ipa_host_otp`` variable.
> This playbook does not require an active Kerberos token.
> This playbook needs to be run once per openstack deployment.

View File

@ -57,11 +57,11 @@
fqdn: "{{ undercloud_fqdn }}"
random_password: true
force: true
register: host_otp
register: tripleo_ipa_host_otp
- name: provide OTP generated by IPA server
debug:
msg:
- "The OTP provided by the IPA server is {{ host_otp.host.randompassword }}"
- "The OTP provided by the IPA server is {{ tripleo_ipa_host_otp.host.randompassword }}"
- "Please add the following to your undercloud.conf:"
- "ipa_otp = {{ host_otp.host.randompassword }}"
- "ipa_otp = {{ tripleo_ipa_host_otp.host.randompassword }}"