ansible/docs/man/man3/ansible.shell.3

38 lines
1.2 KiB
Groff
Raw Normal View History

2012-10-04 05:31:50 +02:00
.TH ANSIBLE.SHELL 5 "2012-10-03" "0.8" "ANSIBLE MODULES"
." generated from library/shell
.SH NAME
shell \- Execute commands in nodes.
." ------ DESCRIPTION
.SH DESCRIPTION
.PP
The shell module takes the command name followed by a list of arguments, space delimited. It is almost exactly like the \fIcommand\fR module but runs the command through the user's configured shell on the remote node.
." ------ OPTIONS
."
."
.SH OPTIONS
.IP creates
a filename, when it already exists, this step will NOT be run
.IP chdir
cd into this directory before running the command (0.6 and later)
.IP (free form)
The command module takes a free form command to run."
."
." ------ NOTES
.SH NOTES
.PP
If you want to execute a command securely and predicably, it may be better to use the \fIcommand\fR module instead. Best practices when writing playbooks will follow the trend of using \fIcommand\fR unless \fIshell\fR is explicitly required. When running ad-hoc commands, use your best judgement.
."
."
." ------ EXAMPLES
.SH EXAMPLES
.PP
.nf
shell somescript.sh >> somelog.txt
.fi
." ------- AUTHOR
.SH AUTHOR
Michael DeHaan
.SH SEE ALSO
.IR ansible (1),
.I http://ansible.github.com/modules.html#shell