tmullender / ansible-maven-plugin

A Maven plugin to facilitate running Ansible adhoc commands and playbooks
MIT License
30 stars 10 forks source link

its not possible to define extra args #11

Closed abendt closed 7 years ago

abendt commented 7 years ago

would be useful to be able to define extra args to the execution e.g. "-v" etc

tmullender commented 7 years ago

Hi Alphonse

Which goal are you using? For ansible-playbook this should be possible. There is an example in https://github.com/tmullender/ansible-maven-plugin/blob/master/src/it/extra-vars-ansible-playbook/pom.xml

Does that help?

Tim

abendt commented 7 years ago

Hey Tim,

i'm using the playbook goal the extraVars config options issues the option -e. this is not want i need. i want to add -vvv for a more verbose output.

so there could be either a verbose configuration option or a more generic extraArgs configuration option?

Alphonse

tmullender commented 7 years ago

Sorry Alphonse, I misread what you'd written, extra options should be possible but don't appear to be documented. I can check later when I have my laptop but you can see an example at https://github.com/tmullender/ansible-maven-plugin/blob/master/src/it/extra-options-ansible/pom.xml

tmullender commented 7 years ago

I've double checked the following works within the configuration section of the playbook goal

              <options>
                <option>-vvv</option>
              </options>

Does this work for you?

abendt commented 7 years ago

Hi Tim,

this works. thank you!

Alphonse

tmullender commented 7 years ago

Documentation updated, closing