Hi@akhtar,
You can pass variable on the command line via --extra-vars "name=value". You need to use the Sudo password variable named ansible_sudo_pass as shown below.
$ ansible-playbook playbook.yml --user=username --extra-vars "ansible_sudo_pass=yourPassword"