shell
Collection: builtin
Full Name: parallax.builtin.shell
Aliases: ansible.builtin.shell, shell
Synopsis
Manage shell
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| cmd | string | yes | The shell command to run | |
| chdir | string | Change to this directory before running the command | ||
| creates | string | A filename that this command creates. If it exists, the command will not be run | ||
| removes | string | A 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>