When trying to use the Ansible plugin, the SSH request is being rejected due to invalid password. However, when taking the same command and running it through "sh" Jenkins pipeline step OR directly running it in Bash, the password is accepted and the playbook execution is successful.
One thing to note is the password contains "$$". This is also a problem for ansible-plugin as the prependPasswordCredentials method in AbstractAnsibleInvocation.java does not quote the password. I assumed this was the only problem, fixed it and was going to submit a PR once validated, but I am still encountering issue reported when testing my modified code.
Example of running playbook through ansible plugin
Example of running playbook using Jenkins "sh" step
Username and Password have been changed but the password reflects the uniqueness of the situation. Output in Jenkins has also been unmasked for testing purposes.