Skip to content

Instantly share code, notes, and snippets.

@cloverrose
Created October 12, 2013 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cloverrose/6951999 to your computer and use it in GitHub Desktop.
Save cloverrose/6951999 to your computer and use it in GitHub Desktop.
Ansibleでremoteのファイル名に関して*.javaと言った形で記述したい場合、またjavacのclasspathを通したい場合(環境変数として)
---
# file: roles/hoge/tasks/main.yml
- name: compile *.java
command: sh -c `javac\ /home/vagrant/hoge/*.java`
environment:
CLASSPATH: /usr/local/lib/foo.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment