command

Collection: builtin

Full Name: parallax.builtin.command

Aliases: ansible.builtin.command, command

Synopsis

Manage command

Parameters

NameTypeRequiredDefaultDescription
cmdstringyesThe command to run
chdirstringChange to this directory before running the command
createsstringA filename that this command creates. If it exists, the command will not be run
removesstringA filename that this command removes. If it does not exist, the command will not be run
argv[]string[]A list of program and arguments to execute, bypassing the shell
executablestringshPath to shell executable to use
stdinstringString to pass to the command’s stdin
warnbooltrueIf true, return a warning instead of failure for non-zero exit codes

Example

- name: Example command task
  command:
    cmd: <your_cmd>