Assistive error msg when sudo passwd is incorrect
The error message when ansible_become_pass does not match with the password of the Ansible user of the bootstrap playbook is misleading. This commit corrects that. Closes-Bug: 1832389 Change-Id: I298370cc4e52d80dee630894fc1cb2a2c40337b3 Signed-off-by: Tee Ngo <Tee.Ngo@windriver.com>
This commit is contained in:
parent
37b51a252f
commit
58bf3c849a
@ -62,6 +62,16 @@
|
||||
failed_when: false
|
||||
register: controllerconfig_installed
|
||||
|
||||
- name: Fail if the become password is incorrect
|
||||
fail:
|
||||
msg: >-
|
||||
The provided sudo password does not match with {{ ansible_ssh_user }} password!.
|
||||
If {{ ansible_ssh_user }} password differs from StarlingX default ansible_become_pass
|
||||
(St8rlingX*), please overwrite the default ansible_become_pass either in host/site
|
||||
secret/override file or at the command line using playbook --extra-vars option.
|
||||
when: controllerconfig_installed.module_stderr is defined and
|
||||
controllerconfig_installed.module_stderr is search(' incorrect password attempts')
|
||||
|
||||
- name: Fail if host is not running the right image
|
||||
fail: msg='Host {{ ansible_host }} does not have the right image!.'
|
||||
when: controllerconfig_installed.rc > 0
|
||||
@ -405,7 +415,6 @@
|
||||
register: disk_size_check_result
|
||||
failed_when: false
|
||||
|
||||
|
||||
# Workaround an Ansible quirk
|
||||
- name: Update root disk index for remote play
|
||||
set_fact:
|
||||
|
Loading…
Reference in New Issue
Block a user