WIP: Namespace host_otp variable

By namespacing the variable with the project name, we clarify what
exactly we're providing if people want to invoke the
ipa-server-register-undercloud.yaml tasks from another ansible playbook
and fish the OTP out using a variable name.

Change-Id: If053250937ce76705cdd5084d76869edca8404ce
This commit is contained in:
Lance Bragstad 2020-07-20 10:24:44 -05:00
parent 38b357df5b
commit 3ea3550d8c
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 does not require an active Kerberos token.
> This playbook needs to be run once per openstack deployment. > This playbook needs to be run once per openstack deployment.

View File

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