Is it possible to pass args
, to the shell module when running it as an adhoc command?
I can pass the free_form
parameter using -a
, but I am trying to figure out how to specify additional arguments, such as chdir
or executable
.
For example, what is the adhoc equivalent to this task?
- name: Change working dir to somedir/ and run somescript.sh using bash
shell: somescript.sh >> somelog.txt
args:
chdir: somedir/
executable: /bin/bash