Closed tmullender closed 9 years ago
Fixed submitted as: 1b78943b2964e2595ccece7e3b1233ba64fcfea4
Tests added in: 4b7be586cad9a200fbbd3a21082636f3e83e6ffd
Fixed in version 1.0.1:
mvn ansible:ansible -Dansible.hosts=mint -Dansible.remoteUser=user
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- ansible-maven-plugin:1.0.1:ansible (default-cli) @ standalone-pom ---
[INFO] Command: [ansible, -u, user, -m, ping, mint]
[INFO] Updated working directory: /tmp
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.851 s
[INFO] Finished at: 2014-10-26T21:36:20+00:00
[INFO] Final Memory: 10M/146M
[INFO] ------------------------------------------------------------------------
Using the example from the README:
mvn co.escapeideas.maven:ansible-maven-plugin:ansible -DmoduleName=ping -Dhosts=localhost
when run in a non project directory, results in the following error:
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.283s [INFO] Finished at: Fri Oct 24 23:14:56 BST 2014 [INFO] Final Memory: 6M/146M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal co.escapeideas.maven:ansible-maven-plugin:1.0.0:ansible (default-cli) on project standalone-pom: Unable to run playbook: Cannot run program "ansible" (in directory "/home/tmullender/Desktop/${project.basedir}/target"): error=2, No such file or directory -> [Help 1] [ERROR]