To automate password input we can have a password file for all the passwords of encrypted files will be saved and ansible can make a call to fetch those when required.
ansible_ssh_common_args: '-o ProxyCommand="ssh -W %h:%p -q [email protected]"'
This can also be achieved by having a separate script that specifies the passwords. But in this case, we need to print a password to stdout to work without annoying errors.
ansible-playbook launch.yml --vault-password-file ~/ .vault_pass.py