ansible.builtin.sh shell – POSIX shell (/bin/sh)
Note
This shell plugin is part of ansible-core
and included in all Ansible
installations. In most cases, you can use the short
plugin name
sh
.
However, we recommend you use the Fully Qualified Collection Name (FQCN) ansible.builtin.sh
for easy linking to the
plugin documentation and to avoid conflicting with other collections that may have
the same shell plugin name.
Synopsis
This shell plugin is the one you want to use on most Unix systems, it is the most compatible and widely installed shell.
Parameters
Parameter |
Comments |
---|---|
list of users to be expected to have admin privileges. This is used by the controller to determine how to share temporary files between the remote user and the become user. Default: Configuration:
|
|
Directory in which ansible will keep async job information Default: Configuration:
|
|
Checked when Ansible needs to execute a module as a different user. If setfacl and chown both fail and do not let the different user access the module’s files, they will be chgrp’d to this group. In order for this to work, the remote_user and become_user must share a common group and this setting must be set to that group. Configuration:
|
|
List of dictionaries of environment variables and their values to use when executing commands. Default: |
|
Temporary directory to use on targets when executing tasks. Default: Configuration:
|
|
List of valid system temporary directories on the managed machine for Ansible to validate When Default: Configuration:
|
|
This makes the temporary files created on the machine world-readable and will issue a warning instead of failing the task. It is useful when becoming an unprivileged user. Choices:
Configuration:
|
Hint
Configuration entries for each entry type have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up.