shell

Collection: builtin

Full Name: parallax.builtin.shell

Aliases: ansible.builtin.shell, shell

Synopsis

Manage shell

Parameters

NameTypeRequiredDefaultDescription
cmdstringyesThe shell 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

Example

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