ansible.builtin.cmd (v2.16.5) — shell

Windows Command Prompt

| "added in version" 2.8 of ansible.builtin"

Authors: unknown

Install Ansible via pip

Install with pip install ansible-core==2.16.5

Description

Used with the 'ssh' connection plugin and no C(DefaultShell) has been set on the Windows host.

Inputs

    
async_dir:
    default: '%USERPROFILE%\.ansible_async'
    description:
    - Directory in which ansible will keep async job information.
    - Before Ansible 2.8, this was set to C(remote_tmp + "\.ansible_async").
    ini:
    - key: async_dir
      section: powershell
    vars:
    - name: ansible_async_dir
    version_added: '2.8'
    version_added_collection: ansible.builtin

remote_tmp:
    default: '%TEMP%'
    description:
    - Temporary directory to use on targets when copying files to the host.
    ini:
    - key: remote_tmp
      section: powershell
    vars:
    - name: ansible_remote_tmp

environment:
    default:
    - {}
    description:
    - List of dictionaries of environment variables and their values to use when executing
      commands.
    elements: dictionary
    keyword:
    - name: environment
    type: list

set_module_language:
    choices:
    - 'no'
    - false
    default: 'no'
    description:
    - Controls if we set the locale for modules when executing on the target.
    - Windows only supports V(no) as an option.
    type: bool