Junfeng (Shawn) Li 6c409596bb Add cli command to wrap platform upgrade playbook
Details: Add a new cli command to wrap ansible playbook below
ansible-playbook /usr/share/ansible/stx-ansible/playbooks/upgrade_platform.yml

The ansible_become_pass is required parameter for this command.
If the password is not present in the command line, the password
prompt will appear requiring entering password.
The password entered in prompt doesn't appear in the bash.log

This command also accepts -extra_vars that is the same parameter used
in ansible-playbook command.

Example:
platform-upgrade --become_pass=mypassword --extra_vars=k1=v1,k2=v2

Test Plan:

PASS: execute the command without become_pass provided
PASS: execute the command with become_pass provided
PASS: execute the command  with more optional parameters provided
PASS: execute the command with parameters in different order

Task: 45858
Story: 2009303
Change-Id: I4a731c5fd3254f686b215ffd1dd5e72b6009f096
Signed-off-by: Junfeng (Shawn) Li <junfeng.li@windriver.com>
2022-09-15 13:31:34 -04:00
..