I want to set ansible playbook execution to verbose -vvv when jenkins runs the playbook via the Ansible Plugin.
However, https://github.com/jenkinsci/ansible-plugin doesn't appear to have a verbose or log level as a part of it and I don't see any other way to push the -vvv element on to command line.
Is there a way to set log level in the playbook itself?
To set Jenkins Ansible Plugin log level in Pipeline Script you can use extras
parameter in ansiblePlaybook
function to add command line arguments. Example:
node {
ansiblePlaybook(
playbook: 'path/to/playbook.yml',
extras: '-vvv' )
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With