Mutually reference Windows and non-Windows modules (#25482)
* Mutually reference Windows and non-Windows modules To make it easier for Windows or non-Windows users to find the relevant module information, we are mutually referencing both variants in their documentation. We are also adding a special note if a module works on both Windows and non-Windows targets. * Mutually reference Windows and non-Windows modules To make it easier for Windows or non-Windows users to find the relevant module information, we are mutually referencing both variants in their documentation. We are also adding a special note if a module works on both Windows and non-Windows targets. * Replace 'look at' with 'use', as requested ci_complete
This commit is contained in:
parent
8765eadb30
commit
7d7051fc54
50 changed files with 137 additions and 20 deletions
|
@ -35,6 +35,7 @@ description:
|
||||||
processed through the shell, so variables like C($HOME) and operations
|
processed through the shell, so variables like C($HOME) and operations
|
||||||
like C("<"), C(">"), C("|"), C(";") and C("&") will not work (use the M(shell)
|
like C("<"), C(">"), C("|"), C(";") and C("&") will not work (use the M(shell)
|
||||||
module if you need these features).
|
module if you need these features).
|
||||||
|
- For Windows targets, use the M(win_command) module instead.
|
||||||
options:
|
options:
|
||||||
free_form:
|
free_form:
|
||||||
description:
|
description:
|
||||||
|
@ -76,6 +77,7 @@ notes:
|
||||||
The C(command) module is much more secure as it's not affected by the user's environment.
|
The C(command) module is much more secure as it's not affected by the user's environment.
|
||||||
- " C(creates), C(removes), and C(chdir) can be specified after the command.
|
- " C(creates), C(removes), and C(chdir) can be specified after the command.
|
||||||
For instance, if you only want to run a command if a certain file does not exist, use this."
|
For instance, if you only want to run a command if a certain file does not exist, use this."
|
||||||
|
- For Windows targets, use the M(win_command) module instead.
|
||||||
author:
|
author:
|
||||||
- Ansible Core Team
|
- Ansible Core Team
|
||||||
- Michael DeHaan
|
- Michael DeHaan
|
||||||
|
|
|
@ -50,6 +50,7 @@ description:
|
||||||
available. There is no change handler support for this module.
|
available. There is no change handler support for this module.
|
||||||
- This module does not require python on the remote system, much like
|
- This module does not require python on the remote system, much like
|
||||||
the M(script) module.
|
the M(script) module.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
notes:
|
notes:
|
||||||
- "If using raw from a playbook, you may need to disable fact gathering
|
- "If using raw from a playbook, you may need to disable fact gathering
|
||||||
using C(gather_facts: no) if you're using C(raw) to bootstrap python
|
using C(gather_facts: no) if you're using C(raw) to bootstrap python
|
||||||
|
@ -59,6 +60,7 @@ notes:
|
||||||
- the C(environment) keyword does not work with raw normally, it requires a shell
|
- the C(environment) keyword does not work with raw normally, it requires a shell
|
||||||
which means it only works if C(executable) is set or using the module
|
which means it only works if C(executable) is set or using the module
|
||||||
with privilege escalation (C(become)).
|
with privilege escalation (C(become)).
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
author:
|
author:
|
||||||
- Ansible Core Team
|
- Ansible Core Team
|
||||||
- Michael DeHaan
|
- Michael DeHaan
|
||||||
|
|
|
@ -30,6 +30,7 @@ description:
|
||||||
- "The given script will be processed through the shell environment on the remote node. "
|
- "The given script will be processed through the shell environment on the remote node. "
|
||||||
- "This module does not require python on the remote system, much like
|
- "This module does not require python on the remote system, much like
|
||||||
the M(raw) module. "
|
the M(raw) module. "
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
options:
|
options:
|
||||||
free_form:
|
free_form:
|
||||||
description:
|
description:
|
||||||
|
@ -53,6 +54,7 @@ notes:
|
||||||
- It is usually preferable to write Ansible modules than pushing scripts. Convert your script to an Ansible module for bonus points!
|
- It is usually preferable to write Ansible modules than pushing scripts. Convert your script to an Ansible module for bonus points!
|
||||||
- The ssh connection plugin will force pseudo-tty allocation via -tt when scripts are executed. pseudo-ttys do not have a stderr channel and all
|
- The ssh connection plugin will force pseudo-tty allocation via -tt when scripts are executed. pseudo-ttys do not have a stderr channel and all
|
||||||
stderr is sent to stdout. If you depend on separated stdout and stderr result keys, please switch to a copy+command set of tasks instead of using script.
|
stderr is sent to stdout. If you depend on separated stdout and stderr result keys, please switch to a copy+command set of tasks instead of using script.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
author:
|
author:
|
||||||
- Ansible Core Team
|
- Ansible Core Team
|
||||||
- Michael DeHaan
|
- Michael DeHaan
|
||||||
|
|
|
@ -30,6 +30,7 @@ description:
|
||||||
- The C(shell) module takes the command name followed by a list of space-delimited arguments.
|
- The C(shell) module takes the command name followed by a list of space-delimited arguments.
|
||||||
It is almost exactly like the M(command) module but runs
|
It is almost exactly like the M(command) module but runs
|
||||||
the command through a shell (C(/bin/sh)) on the remote node.
|
the command through a shell (C(/bin/sh)) on the remote node.
|
||||||
|
- For Windows targets, use the M(win_shell) module instead.
|
||||||
version_added: "0.2"
|
version_added: "0.2"
|
||||||
options:
|
options:
|
||||||
free_form:
|
free_form:
|
||||||
|
@ -75,7 +76,7 @@ notes:
|
||||||
judgement.
|
judgement.
|
||||||
- To sanitize any variables passed to the shell module, you should use
|
- To sanitize any variables passed to the shell module, you should use
|
||||||
"{{ var | quote }}" instead of just "{{ var }}" to make sure they don't include evil things like semicolons.
|
"{{ var | quote }}" instead of just "{{ var }}" to make sure they don't include evil things like semicolons.
|
||||||
|
- For Windows targets, use the M(win_shell) module instead.
|
||||||
requirements: [ ]
|
requirements: [ ]
|
||||||
author:
|
author:
|
||||||
- Ansible Core Team
|
- Ansible Core Team
|
||||||
|
|
|
@ -32,6 +32,7 @@ description:
|
||||||
- The C(copy) module copies a file from the local or remote machine to a location on the remote machine.
|
- The C(copy) module copies a file from the local or remote machine to a location on the remote machine.
|
||||||
Use the M(fetch) module to copy files from remote locations to the local box.
|
Use the M(fetch) module to copy files from remote locations to the local box.
|
||||||
If you need variable interpolation in copied files, use the M(template) module.
|
If you need variable interpolation in copied files, use the M(template) module.
|
||||||
|
- For Windows targets, use the M(win_copy) module instead.
|
||||||
options:
|
options:
|
||||||
src:
|
src:
|
||||||
description:
|
description:
|
||||||
|
@ -106,6 +107,7 @@ author:
|
||||||
notes:
|
notes:
|
||||||
- The "copy" module recursively copy facility does not scale to lots (>hundreds) of files.
|
- The "copy" module recursively copy facility does not scale to lots (>hundreds) of files.
|
||||||
For alternative, see synchronize module, which is a wrapper around rsync.
|
For alternative, see synchronize module, which is a wrapper around rsync.
|
||||||
|
- For Windows targets, use the M(win_copy) module instead.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
|
|
@ -28,6 +28,7 @@ description:
|
||||||
- This module works like M(copy), but in reverse. It is used for fetching
|
- This module works like M(copy), but in reverse. It is used for fetching
|
||||||
files from remote machines and storing them locally in a file tree,
|
files from remote machines and storing them locally in a file tree,
|
||||||
organized by hostname.
|
organized by hostname.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
version_added: "0.2"
|
version_added: "0.2"
|
||||||
options:
|
options:
|
||||||
src:
|
src:
|
||||||
|
@ -86,6 +87,7 @@ notes:
|
||||||
playbook authors are encouraged to use fail_when or ignore_errors to
|
playbook authors are encouraged to use fail_when or ignore_errors to
|
||||||
get this ability. They may also explicitly set fail_on_missing to False
|
get this ability. They may also explicitly set fail_on_missing to False
|
||||||
to get the non-failing behaviour.
|
to get the non-failing behaviour.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
|
|
@ -33,7 +33,9 @@ description:
|
||||||
- Sets attributes of files, symlinks, and directories, or removes
|
- Sets attributes of files, symlinks, and directories, or removes
|
||||||
files/symlinks/directories. Many other modules support the same options as
|
files/symlinks/directories. Many other modules support the same options as
|
||||||
the C(file) module - including M(copy), M(template), and M(assemble).
|
the C(file) module - including M(copy), M(template), and M(assemble).
|
||||||
|
- For Windows targets, use the M(win_file) module instead.
|
||||||
notes:
|
notes:
|
||||||
|
- For Windows targets, use the M(win_file) module instead.
|
||||||
- See also M(copy), M(template), M(assemble)
|
- See also M(copy), M(template), M(assemble)
|
||||||
requirements: [ ]
|
requirements: [ ]
|
||||||
author:
|
author:
|
||||||
|
|
|
@ -31,6 +31,7 @@ version_added: "2.0"
|
||||||
short_description: Return a list of files based on specific criteria
|
short_description: Return a list of files based on specific criteria
|
||||||
description:
|
description:
|
||||||
- Return a list of files based on specific criteria. Multiple criteria are AND'd together.
|
- Return a list of files based on specific criteria. Multiple criteria are AND'd together.
|
||||||
|
- For Windows targets, use the M(win_find) module instead.
|
||||||
options:
|
options:
|
||||||
age:
|
age:
|
||||||
description:
|
description:
|
||||||
|
@ -96,6 +97,8 @@ options:
|
||||||
choices: [ 'no', 'yes' ]
|
choices: [ 'no', 'yes' ]
|
||||||
description:
|
description:
|
||||||
- If false the patterns are file globs (shell) if true they are python regexes.
|
- If false the patterns are file globs (shell) if true they are python regexes.
|
||||||
|
notes:
|
||||||
|
- For Windows targets, use the M(win_find) module instead.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@ version_added: "1.3"
|
||||||
short_description: Retrieve file or file system status
|
short_description: Retrieve file or file system status
|
||||||
description:
|
description:
|
||||||
- Retrieves facts for a file similar to the linux/unix 'stat' command.
|
- Retrieves facts for a file similar to the linux/unix 'stat' command.
|
||||||
|
- For Windows targets, use the M(win_stat) module instead.
|
||||||
options:
|
options:
|
||||||
path:
|
path:
|
||||||
description:
|
description:
|
||||||
|
@ -73,6 +74,8 @@ options:
|
||||||
default: 'yes'
|
default: 'yes'
|
||||||
version_added: "2.3"
|
version_added: "2.3"
|
||||||
aliases: [ attr, attributes ]
|
aliases: [ attr, attributes ]
|
||||||
|
notes:
|
||||||
|
- For Windows targets, use the M(win_stat) module instead.
|
||||||
author: Bruce Pennypacker (@bpennypacker)
|
author: Bruce Pennypacker (@bpennypacker)
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,7 @@ description:
|
||||||
- The C(tempfile) module creates temporary files and directories. C(mktemp) command takes different parameters on various systems, this module helps
|
- The C(tempfile) module creates temporary files and directories. C(mktemp) command takes different parameters on various systems, this module helps
|
||||||
to avoid troubles related to that. Files/directories created by module are accessible only by creator. In case you need to make them world-accessible
|
to avoid troubles related to that. Files/directories created by module are accessible only by creator. In case you need to make them world-accessible
|
||||||
you need to use M(file) module.
|
you need to use M(file) module.
|
||||||
|
- For Windows targets, use the M(win_tempfile) module instead.
|
||||||
options:
|
options:
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
|
@ -56,6 +57,8 @@ options:
|
||||||
- Suffix of file/directory name created by module.
|
- Suffix of file/directory name created by module.
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
|
notes:
|
||||||
|
- For Windows targets, use the M(win_tempfile) module instead.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = """
|
EXAMPLES = """
|
||||||
|
|
|
@ -35,13 +35,14 @@ description:
|
||||||
- The C(unarchive) module unpacks an archive.
|
- The C(unarchive) module unpacks an archive.
|
||||||
- By default, it will copy the source file from the local system to the target before unpacking.
|
- By default, it will copy the source file from the local system to the target before unpacking.
|
||||||
- Set C(remote_src=yes) to unpack an archive which already exists on the target.
|
- Set C(remote_src=yes) to unpack an archive which already exists on the target.
|
||||||
|
- For Windows targets, use the M(win_unzip) module instead.
|
||||||
options:
|
options:
|
||||||
src:
|
src:
|
||||||
description:
|
description:
|
||||||
- If C(remote_src=no) (default), local path to archive file to copy to the target server; can be absolute or relative. If C(remote_src=yes), path on the
|
- If C(remote_src=no) (default), local path to archive file to copy to the target server; can be absolute or relative. If C(remote_src=yes), path on the
|
||||||
target server to existing archive file to unpack.
|
target server to existing archive file to unpack.
|
||||||
- If C(remote_src=yes) and C(src) contains C(://), the remote machine will download the file from the URL first. (version_added 2.0). This is only for
|
- If C(remote_src=yes) and C(src) contains C(://), the remote machine will download the file from the URL first. (version_added 2.0). This is only for
|
||||||
simple cases, for full download support look at the M(get_url) module.
|
simple cases, for full download support use the M(get_url) module.
|
||||||
required: true
|
required: true
|
||||||
dest:
|
dest:
|
||||||
description:
|
description:
|
||||||
|
@ -107,6 +108,7 @@ notes:
|
||||||
are not touched. This is the same behavior as a normal archive extraction.
|
are not touched. This is the same behavior as a normal archive extraction.
|
||||||
- Existing files/directories in the destination which are not in the archive
|
- Existing files/directories in the destination which are not in the archive
|
||||||
are ignored for purposes of deciding if the archive should be unpacked or not.
|
are ignored for purposes of deciding if the archive should be unpacked or not.
|
||||||
|
- For Windows targets, use the M(win_unzip) module instead.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = r'''
|
EXAMPLES = r'''
|
||||||
|
|
|
@ -27,6 +27,7 @@ short_description: add a host (and alternatively a group) to the ansible-playboo
|
||||||
description:
|
description:
|
||||||
- Use variables to create new hosts and groups in inventory for use in later plays of the same playbook.
|
- Use variables to create new hosts and groups in inventory for use in later plays of the same playbook.
|
||||||
Takes variables so you can define the new hosts more fully.
|
Takes variables so you can define the new hosts more fully.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
version_added: "0.9"
|
version_added: "0.9"
|
||||||
options:
|
options:
|
||||||
name:
|
name:
|
||||||
|
@ -42,6 +43,7 @@ options:
|
||||||
notes:
|
notes:
|
||||||
- This module bypasses the play host loop and only runs once for all the hosts in the play, if you need it
|
- This module bypasses the play host loop and only runs once for all the hosts in the play, if you need it
|
||||||
to iterate use a with\_ directive.
|
to iterate use a with\_ directive.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
author:
|
author:
|
||||||
- "Ansible Core Team"
|
- "Ansible Core Team"
|
||||||
- "Seth Vidal"
|
- "Seth Vidal"
|
||||||
|
|
|
@ -26,6 +26,7 @@ module: group_by
|
||||||
short_description: Create Ansible groups based on facts
|
short_description: Create Ansible groups based on facts
|
||||||
description:
|
description:
|
||||||
- Use facts to create ad-hoc groups that can be used later in a playbook.
|
- Use facts to create ad-hoc groups that can be used later in a playbook.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
version_added: "0.9"
|
version_added: "0.9"
|
||||||
options:
|
options:
|
||||||
key:
|
key:
|
||||||
|
@ -35,6 +36,7 @@ options:
|
||||||
author: "Jeroen Hoekx (@jhoekx)"
|
author: "Jeroen Hoekx (@jhoekx)"
|
||||||
notes:
|
notes:
|
||||||
- Spaces in group names are converted to dashes '-'.
|
- Spaces in group names are converted to dashes '-'.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
|
|
@ -41,6 +41,7 @@ description:
|
||||||
your proxy environment for both protocols is correct.
|
your proxy environment for both protocols is correct.
|
||||||
- From Ansible 2.4 when run with C(--check), it will do a HEAD request to validate the URL but
|
- From Ansible 2.4 when run with C(--check), it will do a HEAD request to validate the URL but
|
||||||
will not download the entire file or verify it against hashes.
|
will not download the entire file or verify it against hashes.
|
||||||
|
- For Windows targets, use the M(win_get_url) module instead.
|
||||||
version_added: '0.6'
|
version_added: '0.6'
|
||||||
options:
|
options:
|
||||||
url:
|
url:
|
||||||
|
@ -162,6 +163,8 @@ options:
|
||||||
# informational: requirements for nodes
|
# informational: requirements for nodes
|
||||||
extends_documentation_fragment:
|
extends_documentation_fragment:
|
||||||
- files
|
- files
|
||||||
|
notes:
|
||||||
|
- For Windows targets, use the M(win_get_url) module instead.
|
||||||
author: Jan-Piet Mens (@jpmens)
|
author: Jan-Piet Mens (@jpmens)
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,7 @@ short_description: Slurps a file from remote nodes
|
||||||
description:
|
description:
|
||||||
- This module works like M(fetch). It is used for fetching a base64-
|
- This module works like M(fetch). It is used for fetching a base64-
|
||||||
encoded blob containing the data in a remote file.
|
encoded blob containing the data in a remote file.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
options:
|
options:
|
||||||
src:
|
src:
|
||||||
description:
|
description:
|
||||||
|
@ -39,6 +40,7 @@ options:
|
||||||
notes:
|
notes:
|
||||||
- This module returns an 'in memory' base64 encoded version of the file, take into account that this will require at least twice the RAM as the
|
- This module returns an 'in memory' base64 encoded version of the file, take into account that this will require at least twice the RAM as the
|
||||||
original file size.
|
original file size.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
- "See also: M(fetch)"
|
- "See also: M(fetch)"
|
||||||
author:
|
author:
|
||||||
- Ansible Core Team
|
- Ansible Core Team
|
||||||
|
|
|
@ -32,6 +32,7 @@ short_description: Interacts with webservices
|
||||||
description:
|
description:
|
||||||
- Interacts with HTTP and HTTPS web services and supports Digest, Basic and WSSE
|
- Interacts with HTTP and HTTPS web services and supports Digest, Basic and WSSE
|
||||||
HTTP authentication mechanisms.
|
HTTP authentication mechanisms.
|
||||||
|
- For Windows targets, use the M(win_uri) module instead.
|
||||||
version_added: "1.1"
|
version_added: "1.1"
|
||||||
options:
|
options:
|
||||||
url:
|
url:
|
||||||
|
@ -174,6 +175,7 @@ options:
|
||||||
version_added: 2.4
|
version_added: 2.4
|
||||||
notes:
|
notes:
|
||||||
- The dependency on httplib2 was removed in Ansible 2.1
|
- The dependency on httplib2 was removed in Ansible 2.1
|
||||||
|
- For Windows targets, use the M(win_uri) module instead.
|
||||||
author: "Romeo Theriault (@romeotheriault)"
|
author: "Romeo Theriault (@romeotheriault)"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,7 @@ author:
|
||||||
short_description: Generic OS package manager
|
short_description: Generic OS package manager
|
||||||
description:
|
description:
|
||||||
- Installs, upgrade and removes packages using the underlying OS package manager.
|
- Installs, upgrade and removes packages using the underlying OS package manager.
|
||||||
|
- For Windows targets, use the M(win_package) module instead.
|
||||||
options:
|
options:
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
|
@ -53,6 +54,7 @@ requirements:
|
||||||
- Whatever is required for the package plugins specific for each system.
|
- Whatever is required for the package plugins specific for each system.
|
||||||
notes:
|
notes:
|
||||||
- This module actually calls the pertinent package modules for each system (apt, yum, etc).
|
- This module actually calls the pertinent package modules for each system (apt, yum, etc).
|
||||||
|
- For Windows targets, use the M(win_package) module instead.
|
||||||
'''
|
'''
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: install the latest version of ntpdate
|
- name: install the latest version of ntpdate
|
||||||
|
|
|
@ -32,6 +32,7 @@ short_description: Add or remove groups
|
||||||
requirements: [ groupadd, groupdel, groupmod ]
|
requirements: [ groupadd, groupdel, groupmod ]
|
||||||
description:
|
description:
|
||||||
- Manage presence of groups on a host.
|
- Manage presence of groups on a host.
|
||||||
|
- For Windows targets, use the M(win_group) module instead.
|
||||||
options:
|
options:
|
||||||
name:
|
name:
|
||||||
required: true
|
required: true
|
||||||
|
@ -53,7 +54,8 @@ options:
|
||||||
choices: [ "yes", "no" ]
|
choices: [ "yes", "no" ]
|
||||||
description:
|
description:
|
||||||
- If I(yes), indicates that the group created is a system group.
|
- If I(yes), indicates that the group created is a system group.
|
||||||
|
notes:
|
||||||
|
- For Windows targets, use the M(win_group) module instead.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
|
|
@ -35,6 +35,9 @@ description:
|
||||||
contact. It does not make sense in playbooks, but it is useful from
|
contact. It does not make sense in playbooks, but it is useful from
|
||||||
C(/usr/bin/ansible) to verify the ability to login and that a usable python is configured.
|
C(/usr/bin/ansible) to verify the ability to login and that a usable python is configured.
|
||||||
- This is NOT ICMP ping, this is just a trivial test module.
|
- This is NOT ICMP ping, this is just a trivial test module.
|
||||||
|
- For Windows targets, use the M(ping) module instead.
|
||||||
|
notes:
|
||||||
|
- For Windows targets, use the M(ping) module instead.
|
||||||
options: {}
|
options: {}
|
||||||
author:
|
author:
|
||||||
- "Ansible Core Team"
|
- "Ansible Core Team"
|
||||||
|
|
|
@ -34,6 +34,7 @@ short_description: Manage services.
|
||||||
description:
|
description:
|
||||||
- Controls services on remote hosts. Supported init systems include BSD init,
|
- Controls services on remote hosts. Supported init systems include BSD init,
|
||||||
OpenRC, SysV, Solaris SMF, systemd, upstart.
|
OpenRC, SysV, Solaris SMF, systemd, upstart.
|
||||||
|
- For Windows targets, use the M(win_service) module instead.
|
||||||
options:
|
options:
|
||||||
name:
|
name:
|
||||||
required: true
|
required: true
|
||||||
|
@ -87,6 +88,8 @@ options:
|
||||||
- Normally it uses the value of the 'ansible_service_mgr' fact and falls back to the old 'service' module when none matching is found.
|
- Normally it uses the value of the 'ansible_service_mgr' fact and falls back to the old 'service' module when none matching is found.
|
||||||
default: 'auto'
|
default: 'auto'
|
||||||
version_added: 2.2
|
version_added: 2.2
|
||||||
|
notes:
|
||||||
|
- For Windows targets, use the M(win_service) module instead.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
|
|
@ -69,6 +69,7 @@ description:
|
||||||
executed directly by C(/usr/bin/ansible) to check what variables are
|
executed directly by C(/usr/bin/ansible) to check what variables are
|
||||||
available to a host. Ansible provides many I(facts) about the system,
|
available to a host. Ansible provides many I(facts) about the system,
|
||||||
automatically.
|
automatically.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
notes:
|
notes:
|
||||||
- More ansible facts will be added with successive releases. If I(facter) or
|
- More ansible facts will be added with successive releases. If I(facter) or
|
||||||
I(ohai) are installed, variables from these programs will also be snapshotted
|
I(ohai) are installed, variables from these programs will also be snapshotted
|
||||||
|
@ -85,6 +86,7 @@ notes:
|
||||||
their output must be formattable in JSON (Ansible will take care of this). Test the
|
their output must be formattable in JSON (Ansible will take care of this). Test the
|
||||||
output of your scripts.
|
output of your scripts.
|
||||||
This option was added in Ansible 2.1.
|
This option was added in Ansible 2.1.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
author:
|
author:
|
||||||
- "Ansible Core Team"
|
- "Ansible Core Team"
|
||||||
- "Michael DeHaan"
|
- "Michael DeHaan"
|
||||||
|
|
|
@ -33,8 +33,10 @@ notes:
|
||||||
- There are specific requirements per platform on user management utilities. However
|
- There are specific requirements per platform on user management utilities. However
|
||||||
they generally come pre-installed with the system and Ansible will require they
|
they generally come pre-installed with the system and Ansible will require they
|
||||||
are present at runtime. If they are not, a descriptive error message will be shown.
|
are present at runtime. If they are not, a descriptive error message will be shown.
|
||||||
|
- For Windows targets, use the M(win_user) module instead.
|
||||||
description:
|
description:
|
||||||
- Manage user accounts and user attributes.
|
- Manage user accounts and user attributes.
|
||||||
|
- For Windows targets, use the M(win_user) module instead.
|
||||||
options:
|
options:
|
||||||
name:
|
name:
|
||||||
required: true
|
required: true
|
||||||
|
|
|
@ -31,6 +31,7 @@ description:
|
||||||
- Meta tasks are a special kind of task which can influence Ansible internal execution or state. Prior to Ansible 2.0,
|
- Meta tasks are a special kind of task which can influence Ansible internal execution or state. Prior to Ansible 2.0,
|
||||||
the only meta option available was `flush_handlers`. As of 2.2, there are five meta tasks which can be used.
|
the only meta option available was `flush_handlers`. As of 2.2, there are five meta tasks which can be used.
|
||||||
Meta tasks can be used anywhere within your playbook.
|
Meta tasks can be used anywhere within your playbook.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
options:
|
options:
|
||||||
free_form:
|
free_form:
|
||||||
description:
|
description:
|
||||||
|
@ -48,9 +49,9 @@ options:
|
||||||
- "C(reset_connection) (added in 2.3) interrupts a persistent connection (i.e. ssh + control persist)"
|
- "C(reset_connection) (added in 2.3) interrupts a persistent connection (i.e. ssh + control persist)"
|
||||||
choices: ['noop', 'flush_handlers', 'refresh_inventory', 'clear_facts', 'clear_host_errors', 'end_play', 'reset_connection']
|
choices: ['noop', 'flush_handlers', 'refresh_inventory', 'clear_facts', 'clear_host_errors', 'end_play', 'reset_connection']
|
||||||
required: true
|
required: true
|
||||||
default: null
|
|
||||||
notes:
|
notes:
|
||||||
- meta is not really a module nor action_plugin as such it cannot be overwritten.
|
- C(meta) is not really a module nor action_plugin as such it cannot be overwritten.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
author:
|
author:
|
||||||
- "Ansible Core Team"
|
- "Ansible Core Team"
|
||||||
'''
|
'''
|
||||||
|
|
|
@ -29,6 +29,7 @@ module: assert
|
||||||
short_description: Asserts given expressions are true
|
short_description: Asserts given expressions are true
|
||||||
description:
|
description:
|
||||||
- This module asserts that given expressions are true with an optional custom message.
|
- This module asserts that given expressions are true with an optional custom message.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
version_added: "1.5"
|
version_added: "1.5"
|
||||||
options:
|
options:
|
||||||
that:
|
that:
|
||||||
|
@ -39,7 +40,8 @@ options:
|
||||||
msg:
|
msg:
|
||||||
description:
|
description:
|
||||||
- "The customized message used for a failing assertion"
|
- "The customized message used for a failing assertion"
|
||||||
required: false
|
notes:
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
author:
|
author:
|
||||||
- "Ansible Core Team"
|
- "Ansible Core Team"
|
||||||
- "Michael DeHaan"
|
- "Michael DeHaan"
|
||||||
|
|
|
@ -29,25 +29,23 @@ DOCUMENTATION = '''
|
||||||
module: async_status
|
module: async_status
|
||||||
short_description: Obtain status of asynchronous task
|
short_description: Obtain status of asynchronous task
|
||||||
description:
|
description:
|
||||||
- "This module gets the status of an asynchronous task."
|
- This module gets the status of an asynchronous task.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
version_added: "0.5"
|
version_added: "0.5"
|
||||||
options:
|
options:
|
||||||
jid:
|
jid:
|
||||||
description:
|
description:
|
||||||
- Job or task identifier
|
- Job or task identifier
|
||||||
required: true
|
required: true
|
||||||
default: null
|
|
||||||
aliases: []
|
|
||||||
mode:
|
mode:
|
||||||
description:
|
description:
|
||||||
- if C(status), obtain the status; if C(cleanup), clean up the async job cache
|
- if C(status), obtain the status; if C(cleanup), clean up the async job cache
|
||||||
located in C(~/.ansible_async/) for the specified job I(jid).
|
located in C(~/.ansible_async/) for the specified job I(jid).
|
||||||
required: false
|
|
||||||
choices: [ "status", "cleanup" ]
|
choices: [ "status", "cleanup" ]
|
||||||
default: "status"
|
default: "status"
|
||||||
notes:
|
notes:
|
||||||
- See also U(http://docs.ansible.com/playbooks_async.html)
|
- See also U(http://docs.ansible.com/playbooks_async.html)
|
||||||
requirements: []
|
- This module is also supported for Windows targets.
|
||||||
author:
|
author:
|
||||||
- "Ansible Core Team"
|
- "Ansible Core Team"
|
||||||
- "Michael DeHaan"
|
- "Michael DeHaan"
|
||||||
|
|
|
@ -31,7 +31,7 @@ description:
|
||||||
- This module prints statements during execution and can be useful
|
- This module prints statements during execution and can be useful
|
||||||
for debugging variables or expressions without necessarily halting
|
for debugging variables or expressions without necessarily halting
|
||||||
the playbook. Useful for debugging together with the 'when:' directive.
|
the playbook. Useful for debugging together with the 'when:' directive.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
version_added: "0.8"
|
version_added: "0.8"
|
||||||
options:
|
options:
|
||||||
msg:
|
msg:
|
||||||
|
@ -49,6 +49,8 @@ options:
|
||||||
required: False
|
required: False
|
||||||
default: 0
|
default: 0
|
||||||
version_added: "2.1"
|
version_added: "2.1"
|
||||||
|
notes:
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
author:
|
author:
|
||||||
- "Dag Wieers (@dagwieers)"
|
- "Dag Wieers (@dagwieers)"
|
||||||
- "Michael DeHaan"
|
- "Michael DeHaan"
|
||||||
|
|
|
@ -30,6 +30,7 @@ short_description: Fail with custom message
|
||||||
description:
|
description:
|
||||||
- This module fails the progress with a custom message. It can be
|
- This module fails the progress with a custom message. It can be
|
||||||
useful for bailing out when a certain condition is met using C(when).
|
useful for bailing out when a certain condition is met using C(when).
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
version_added: "0.8"
|
version_added: "0.8"
|
||||||
options:
|
options:
|
||||||
msg:
|
msg:
|
||||||
|
@ -38,6 +39,8 @@ options:
|
||||||
fail will simply bail out with a generic message.
|
fail will simply bail out with a generic message.
|
||||||
required: false
|
required: false
|
||||||
default: "'Failed as requested from task'"
|
default: "'Failed as requested from task'"
|
||||||
|
notes:
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
|
|
||||||
author: "Dag Wieers (@dagwieers)"
|
author: "Dag Wieers (@dagwieers)"
|
||||||
'''
|
'''
|
||||||
|
|
|
@ -26,6 +26,7 @@ description:
|
||||||
- Static includes are not subject to most directives, for example, loops or conditionals, they are applied instead to each inherited task.
|
- Static includes are not subject to most directives, for example, loops or conditionals, they are applied instead to each inherited task.
|
||||||
- Since 2.0 task includes are dynamic and behave more like real tasks. This means they can be looped, skipped and use variables from any source.
|
- Since 2.0 task includes are dynamic and behave more like real tasks. This means they can be looped, skipped and use variables from any source.
|
||||||
Ansible tries to auto detect this, use the `static` directive (new in 2.1) to bypass autodetection.
|
Ansible tries to auto detect this, use the `static` directive (new in 2.1) to bypass autodetection.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
version_added: "0.6"
|
version_added: "0.6"
|
||||||
options:
|
options:
|
||||||
free-form:
|
free-form:
|
||||||
|
@ -34,6 +35,7 @@ options:
|
||||||
notes:
|
notes:
|
||||||
- This is really not a module, though it appears as such, this is a feature of the Ansible Engine, as such it cannot be overridden the same way a
|
- This is really not a module, though it appears as such, this is a feature of the Ansible Engine, as such it cannot be overridden the same way a
|
||||||
module can.
|
module can.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = """
|
EXAMPLES = """
|
||||||
|
|
|
@ -20,7 +20,8 @@ author:
|
||||||
module: include_role
|
module: include_role
|
||||||
short_description: Load and execute a role
|
short_description: Load and execute a role
|
||||||
description:
|
description:
|
||||||
- "Loads and executes a role as a task, this frees roles from the `role:` directive and allows them to be treated more as tasks."
|
- Loads and executes a role as a task, this frees roles from the `role:` directive and allows them to be treated more as tasks.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
version_added: "2.2"
|
version_added: "2.2"
|
||||||
options:
|
options:
|
||||||
name:
|
name:
|
||||||
|
@ -57,6 +58,7 @@ notes:
|
||||||
- As with C(include) this task can be static or dynamic, If static it implies that it won't need templating nor loops nor conditionals and will
|
- As with C(include) this task can be static or dynamic, If static it implies that it won't need templating nor loops nor conditionals and will
|
||||||
show included tasks in the --list options. Ansible will try to autodetect what is needed, but you can set `static` to `yes` or `no` at task
|
show included tasks in the --list options. Ansible will try to autodetect what is needed, but you can set `static` to `yes` or `no` at task
|
||||||
level to control this.
|
level to control this.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = """
|
EXAMPLES = """
|
||||||
|
|
|
@ -21,6 +21,7 @@ short_description: Load variables from files, dynamically within a task.
|
||||||
description:
|
description:
|
||||||
- Loads variables from a YAML/JSON files dynamically from within a file or from a directory recursively during task runtime. If loading a directory,
|
- Loads variables from a YAML/JSON files dynamically from within a file or from a directory recursively during task runtime. If loading a directory,
|
||||||
the files are sorted alphabetically before being loaded.
|
the files are sorted alphabetically before being loaded.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
version_added: "1.4"
|
version_added: "1.4"
|
||||||
options:
|
options:
|
||||||
file:
|
file:
|
||||||
|
@ -65,6 +66,8 @@ options:
|
||||||
description:
|
description:
|
||||||
- This module allows you to specify the 'file' option directly w/o any other options.
|
- This module allows you to specify the 'file' option directly w/o any other options.
|
||||||
There is no 'free-form' option, this is just an indicator, see example below.
|
There is no 'free-form' option, this is just an indicator, see example below.
|
||||||
|
notes:
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = """
|
EXAMPLES = """
|
||||||
|
|
|
@ -33,6 +33,7 @@ description:
|
||||||
- >
|
- >
|
||||||
The pause module integrates into async/parallelized playbooks without any special considerations (see also: Rolling Updates). When using pauses with
|
The pause module integrates into async/parallelized playbooks without any special considerations (see also: Rolling Updates). When using pauses with
|
||||||
the C(serial) playbook parameter (as in rolling updates) you are only prompted once for the current group of hosts.
|
the C(serial) playbook parameter (as in rolling updates) you are only prompted once for the current group of hosts.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
version_added: "0.8"
|
version_added: "0.8"
|
||||||
options:
|
options:
|
||||||
minutes:
|
minutes:
|
||||||
|
@ -53,6 +54,7 @@ options:
|
||||||
author: "Tim Bielawa (@tbielawa)"
|
author: "Tim Bielawa (@tbielawa)"
|
||||||
notes:
|
notes:
|
||||||
- Starting in 2.2, if you specify 0 or negative for minutes or seconds, it will wait for 1 second, previously it would wait indefinitely.
|
- Starting in 2.2, if you specify 0 or negative for minutes or seconds, it will wait for 1 second, previously it would wait indefinitely.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
|
|
@ -34,6 +34,7 @@ description:
|
||||||
a fact cache.
|
a fact cache.
|
||||||
- Per the standard Ansible variable precedence rules, many other types of variables have a higher priority, so this value may be overridden.
|
- Per the standard Ansible variable precedence rules, many other types of variables have a higher priority, so this value may be overridden.
|
||||||
See U(http://docs.ansible.com/ansible/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable) for more information.
|
See U(http://docs.ansible.com/ansible/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable) for more information.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
options:
|
options:
|
||||||
key_value:
|
key_value:
|
||||||
description:
|
description:
|
||||||
|
@ -46,6 +47,7 @@ version_added: "1.2"
|
||||||
notes:
|
notes:
|
||||||
- "The `var=value` notation can only create strings or booleans.
|
- "The `var=value` notation can only create strings or booleans.
|
||||||
If you want to create lists/arrays or dictionary/hashes use `var: [val1, val2]`"
|
If you want to create lists/arrays or dictionary/hashes use `var: [val1, val2]`"
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
|
|
@ -29,6 +29,7 @@ module: set_stats
|
||||||
short_description: Set stats for the current ansible run
|
short_description: Set stats for the current ansible run
|
||||||
description:
|
description:
|
||||||
- This module allows setting/accumulating stats on the current ansible run, either per host of for all hosts in the run.
|
- This module allows setting/accumulating stats on the current ansible run, either per host of for all hosts in the run.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
options:
|
options:
|
||||||
data:
|
data:
|
||||||
description:
|
description:
|
||||||
|
@ -44,6 +45,8 @@ options:
|
||||||
- boolean that indicates if the provided value is aggregated to the existing stat C(yes) or will replace it C(no)
|
- boolean that indicates if the provided value is aggregated to the existing stat C(yes) or will replace it C(no)
|
||||||
required: no
|
required: no
|
||||||
default: yes
|
default: yes
|
||||||
|
notes:
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
version_added: "2.3"
|
version_added: "2.3"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,7 @@ description:
|
||||||
- In 1.8 and later, this module can also be used to wait for active
|
- In 1.8 and later, this module can also be used to wait for active
|
||||||
connections to be closed before continuing, useful if a node
|
connections to be closed before continuing, useful if a node
|
||||||
is being rotated out of a load balancer pool.
|
is being rotated out of a load balancer pool.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
version_added: "0.7"
|
version_added: "0.7"
|
||||||
options:
|
options:
|
||||||
host:
|
host:
|
||||||
|
@ -99,6 +100,8 @@ options:
|
||||||
- This overrides the normal error message from a failure to meet the required conditions.
|
- This overrides the normal error message from a failure to meet the required conditions.
|
||||||
notes:
|
notes:
|
||||||
- The ability to use search_regex with a port connection was added in 1.7.
|
- The ability to use search_regex with a port connection was added in 1.7.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
|
- See also M(wait_for_connection)
|
||||||
author:
|
author:
|
||||||
- Jeroen Hoekx (@jhoekx)
|
- Jeroen Hoekx (@jhoekx)
|
||||||
- John Jarvis (@jarv)
|
- John Jarvis (@jarv)
|
||||||
|
@ -106,7 +109,6 @@ author:
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = r'''
|
EXAMPLES = r'''
|
||||||
|
|
||||||
- name: Wait 300 seconds for port 8000 to become open on the host, don't start checking for 10 seconds
|
- name: Wait 300 seconds for port 8000 to become open on the host, don't start checking for 10 seconds
|
||||||
wait_for:
|
wait_for:
|
||||||
port: 8000
|
port: 8000
|
||||||
|
|
|
@ -32,6 +32,7 @@ description:
|
||||||
- Retries the transport connection after a timeout of C(connect_timeout).
|
- Retries the transport connection after a timeout of C(connect_timeout).
|
||||||
- Tests the transport connection every C(sleep) seconds.
|
- Tests the transport connection every C(sleep) seconds.
|
||||||
- This module makes use of internal ansible transport (and configuration) and the ping/win_ping module to guarantee correct end-to-end functioning.
|
- This module makes use of internal ansible transport (and configuration) and the ping/win_ping module to guarantee correct end-to-end functioning.
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
version_added: "2.3"
|
version_added: "2.3"
|
||||||
options:
|
options:
|
||||||
connect_timeout:
|
connect_timeout:
|
||||||
|
@ -50,6 +51,8 @@ options:
|
||||||
description:
|
description:
|
||||||
- Maximum number of seconds to wait for.
|
- Maximum number of seconds to wait for.
|
||||||
default: 600
|
default: 600
|
||||||
|
notes:
|
||||||
|
- This module is also supported for Windows targets.
|
||||||
author: "Dag Wieers (@dagwieers)"
|
author: "Dag Wieers (@dagwieers)"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,7 @@ description:
|
||||||
processed through the shell, so variables like C($env:HOME) and operations
|
processed through the shell, so variables like C($env:HOME) and operations
|
||||||
like C("<"), C(">"), C("|"), and C(";") will not work (use the M(win_shell)
|
like C("<"), C(">"), C("|"), and C(";") will not work (use the M(win_shell)
|
||||||
module if you need these features).
|
module if you need these features).
|
||||||
|
- For non-Windows targets, use the M(command) module instead.
|
||||||
options:
|
options:
|
||||||
free_form:
|
free_form:
|
||||||
description:
|
description:
|
||||||
|
@ -57,6 +58,7 @@ notes:
|
||||||
environment.
|
environment.
|
||||||
- C(creates), C(removes), and C(chdir) can be specified after the command. For instance, if you only want to run a command if a certain file does not
|
- C(creates), C(removes), and C(chdir) can be specified after the command. For instance, if you only want to run a command if a certain file does not
|
||||||
exist, use this.
|
exist, use this.
|
||||||
|
- For non-Windows targets, use the M(command) module instead.
|
||||||
author:
|
author:
|
||||||
- Matt Davis
|
- Matt Davis
|
||||||
'''
|
'''
|
||||||
|
|
|
@ -31,6 +31,7 @@ version_added: "1.9.2"
|
||||||
short_description: Copies files to remote locations on windows hosts.
|
short_description: Copies files to remote locations on windows hosts.
|
||||||
description:
|
description:
|
||||||
- The C(win_copy) module copies a file on the local box to remote windows locations.
|
- The C(win_copy) module copies a file on the local box to remote windows locations.
|
||||||
|
- For non-Windows targets, use the M(copy) module instead.
|
||||||
options:
|
options:
|
||||||
content:
|
content:
|
||||||
description:
|
description:
|
||||||
|
@ -72,6 +73,8 @@ options:
|
||||||
to destination. Otherwise, if it does not end with "/", the directory
|
to destination. Otherwise, if it does not end with "/", the directory
|
||||||
itself with all contents is copied. This behavior is similar to Rsync.
|
itself with all contents is copied. This behavior is similar to Rsync.
|
||||||
required: true
|
required: true
|
||||||
|
notes:
|
||||||
|
- For non-Windows targets, use the M(copy) module instead.
|
||||||
author: "Jon Hawkesworth (@jhawkesworth)"
|
author: "Jon Hawkesworth (@jhawkesworth)"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,9 @@ description:
|
||||||
- Creates (empty) files, updates file modification stamps of existing files,
|
- Creates (empty) files, updates file modification stamps of existing files,
|
||||||
and can create or remove directories.
|
and can create or remove directories.
|
||||||
- Unlike M(file), does not modify ownership, permissions or manipulate links.
|
- Unlike M(file), does not modify ownership, permissions or manipulate links.
|
||||||
|
- For non-Windows targets, use the M(file) module instead.
|
||||||
notes:
|
notes:
|
||||||
|
- For non-Windows targets, use the M(file) module instead.
|
||||||
- See also M(win_copy), M(win_template), M(copy), M(template), M(assemble)
|
- See also M(win_copy), M(win_template), M(copy), M(template), M(assemble)
|
||||||
requirements: [ ]
|
requirements: [ ]
|
||||||
author: "Jon Hawkesworth (@jhawkesworth)"
|
author: "Jon Hawkesworth (@jhawkesworth)"
|
||||||
|
|
|
@ -31,6 +31,7 @@ short_description: return a list of files based on specific criteria
|
||||||
description:
|
description:
|
||||||
- Return a list of files based on specified criteria.
|
- Return a list of files based on specified criteria.
|
||||||
- Multiple criteria are AND'd together.
|
- Multiple criteria are AND'd together.
|
||||||
|
- For non-Windows targets, use the M(find) module instead.
|
||||||
options:
|
options:
|
||||||
age:
|
age:
|
||||||
description:
|
description:
|
||||||
|
@ -113,6 +114,8 @@ options:
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
choices: ['true', 'false']
|
choices: ['true', 'false']
|
||||||
|
notes:
|
||||||
|
- For non-Windows targets, use the M(find) module instead.
|
||||||
author: "Jordan Borean (@jborean93)"
|
author: "Jordan Borean (@jborean93)"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,7 @@ version_added: "1.7"
|
||||||
short_description: Fetches a file from a given URL
|
short_description: Fetches a file from a given URL
|
||||||
description:
|
description:
|
||||||
- Fetches a file from a URL and saves to locally
|
- Fetches a file from a URL and saves to locally
|
||||||
|
- For non-Windows targets, use the M(get_url) module instead.
|
||||||
author:
|
author:
|
||||||
- "Paul Durivage (@angstwad)"
|
- "Paul Durivage (@angstwad)"
|
||||||
- "Takeshi Kuramochi (tksarah)"
|
- "Takeshi Kuramochi (tksarah)"
|
||||||
|
@ -90,6 +91,8 @@ options:
|
||||||
- Proxy authentication password
|
- Proxy authentication password
|
||||||
version_added: "2.0"
|
version_added: "2.0"
|
||||||
required: false
|
required: false
|
||||||
|
notes:
|
||||||
|
- For non-Windows targets, use the M(get_url) module instead.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = r'''
|
EXAMPLES = r'''
|
||||||
|
|
|
@ -32,7 +32,8 @@ module: win_group
|
||||||
version_added: "1.7"
|
version_added: "1.7"
|
||||||
short_description: Add and remove local groups
|
short_description: Add and remove local groups
|
||||||
description:
|
description:
|
||||||
- Add and remove local groups
|
- Add and remove local groups.
|
||||||
|
- For non-Windows targets, please use the M(group) module instead.
|
||||||
options:
|
options:
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
|
@ -55,6 +56,8 @@ options:
|
||||||
- absent
|
- absent
|
||||||
default: present
|
default: present
|
||||||
aliases: []
|
aliases: []
|
||||||
|
notes:
|
||||||
|
- For non-Windows targets, please use the M(group) module instead.
|
||||||
author: "Chris Hoffman (@chrishoffman)"
|
author: "Chris Hoffman (@chrishoffman)"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,7 @@ description:
|
||||||
Use a product_id to check if the package needs installing. You can find product ids for installed programs in the windows registry
|
Use a product_id to check if the package needs installing. You can find product ids for installed programs in the windows registry
|
||||||
either in C(HKLM:Software\Microsoft\Windows\CurrentVersion\Uninstall) or for 32 bit programs
|
either in C(HKLM:Software\Microsoft\Windows\CurrentVersion\Uninstall) or for 32 bit programs
|
||||||
C(HKLM:Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall)
|
C(HKLM:Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall)
|
||||||
|
- For non-Windows targets, use the M(package) module instead.
|
||||||
options:
|
options:
|
||||||
path:
|
path:
|
||||||
description:
|
description:
|
||||||
|
@ -88,6 +89,8 @@ options:
|
||||||
- If not provided, defaults to 0
|
- If not provided, defaults to 0
|
||||||
required: no
|
required: no
|
||||||
default: 0
|
default: 0
|
||||||
|
notes:
|
||||||
|
- For non-Windows targets, use the M(package) module instead.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = r'''
|
EXAMPLES = r'''
|
||||||
|
|
|
@ -30,14 +30,18 @@ DOCUMENTATION = r'''
|
||||||
---
|
---
|
||||||
module: win_ping
|
module: win_ping
|
||||||
version_added: "1.7"
|
version_added: "1.7"
|
||||||
short_description: A windows version of the classic ping module.
|
short_description: A windows version of the classic ping module
|
||||||
description:
|
description:
|
||||||
- Checks management connectivity of a windows host
|
- Checks management connectivity of a windows host.
|
||||||
|
- This is NOT ICMP ping, this is just a trivial test module.
|
||||||
|
- For non-Windows targets, use the M(ping) module instead.
|
||||||
options:
|
options:
|
||||||
data:
|
data:
|
||||||
description:
|
description:
|
||||||
- Alternate data to return instead of 'pong'
|
- Alternate data to return instead of 'pong'
|
||||||
default: 'pong'
|
default: 'pong'
|
||||||
|
notes:
|
||||||
|
- For non-Windows targets, use the M(ping) module instead.
|
||||||
author: "Chris Church (@cchurch)"
|
author: "Chris Church (@cchurch)"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,8 @@ module: win_service
|
||||||
version_added: "1.7"
|
version_added: "1.7"
|
||||||
short_description: Manages Windows services
|
short_description: Manages Windows services
|
||||||
description:
|
description:
|
||||||
- Manages Windows services
|
- Manages Windows services.
|
||||||
|
- For non-Windows targets, use the M(service) module instead.
|
||||||
options:
|
options:
|
||||||
dependencies:
|
dependencies:
|
||||||
description:
|
description:
|
||||||
|
@ -117,6 +118,8 @@ options:
|
||||||
- The username to set the service to start as.
|
- The username to set the service to start as.
|
||||||
- This and the C(password) argument must be supplied together.
|
- This and the C(password) argument must be supplied together.
|
||||||
version_added: "2.3"
|
version_added: "2.3"
|
||||||
|
notes:
|
||||||
|
- For non-Windows targets, use the M(service) module instead.
|
||||||
author: "Chris Hoffman (@chrishoffman)"
|
author: "Chris Hoffman (@chrishoffman)"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,7 @@ description:
|
||||||
- The C(win_shell) module takes the command name followed by a list of space-delimited arguments.
|
- The C(win_shell) module takes the command name followed by a list of space-delimited arguments.
|
||||||
It is similar to the M(win_command) module, but runs
|
It is similar to the M(win_command) module, but runs
|
||||||
the command via a shell (defaults to PowerShell) on the target host.
|
the command via a shell (defaults to PowerShell) on the target host.
|
||||||
|
- For non-Windows targets, use the M(shell) module instead.
|
||||||
options:
|
options:
|
||||||
free_form:
|
free_form:
|
||||||
description:
|
description:
|
||||||
|
@ -60,8 +61,10 @@ notes:
|
||||||
- WinRM will not return from a command execution until all child processes created have exited.
|
- WinRM will not return from a command execution until all child processes created have exited.
|
||||||
Thus, it is not possible to use C(win_shell) to spawn long-running child or background processes.
|
Thus, it is not possible to use C(win_shell) to spawn long-running child or background processes.
|
||||||
Consider creating a Windows service for managing background processes.
|
Consider creating a Windows service for managing background processes.
|
||||||
|
- For non-Windows targets, use the M(shell) module instead.
|
||||||
|
- See also M(win_command), M(raw)
|
||||||
author:
|
author:
|
||||||
- Matt Davis
|
- Matt Davis (@nitzmahone)
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = r'''
|
EXAMPLES = r'''
|
||||||
|
|
|
@ -28,7 +28,8 @@ module: win_stat
|
||||||
version_added: "1.7"
|
version_added: "1.7"
|
||||||
short_description: returns information about a Windows file
|
short_description: returns information about a Windows file
|
||||||
description:
|
description:
|
||||||
- Returns information about a Windows file
|
- Returns information about a Windows file.
|
||||||
|
- For non-Windows targets, use the M(stat) module instead.
|
||||||
options:
|
options:
|
||||||
path:
|
path:
|
||||||
description:
|
description:
|
||||||
|
@ -59,6 +60,8 @@ options:
|
||||||
default: sha1
|
default: sha1
|
||||||
choices: ['md5', 'sha1', 'sha256', 'sha384', 'sha512']
|
choices: ['md5', 'sha1', 'sha256', 'sha384', 'sha512']
|
||||||
version_added: "2.3"
|
version_added: "2.3"
|
||||||
|
notes:
|
||||||
|
- For non-Windows targets, use the M(stat) module instead.
|
||||||
author: "Chris Church (@cchurch)"
|
author: "Chris Church (@cchurch)"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,7 @@ author: Dag Wieers (@dagwieers)
|
||||||
short_description: Creates temporary files and directories.
|
short_description: Creates temporary files and directories.
|
||||||
description:
|
description:
|
||||||
- Creates temporary files and directories.
|
- Creates temporary files and directories.
|
||||||
|
- For non-Windows targets, please use the M(tempfile) module instead.
|
||||||
options:
|
options:
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
|
@ -50,6 +51,8 @@ options:
|
||||||
description:
|
description:
|
||||||
- Suffix of file/directory name created by module.
|
- Suffix of file/directory name created by module.
|
||||||
default: ''
|
default: ''
|
||||||
|
notes:
|
||||||
|
- For non-Windows targets, please use the M(tempfile) module instead.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = r"""
|
EXAMPLES = r"""
|
||||||
|
|
|
@ -35,6 +35,7 @@ description:
|
||||||
- Unzips compressed files and archives.
|
- Unzips compressed files and archives.
|
||||||
- Supports .zip files natively
|
- Supports .zip files natively
|
||||||
- Supports other formats supported by the Powershell Community Extensions (PSCX) module (basically everything 7zip supports)
|
- Supports other formats supported by the Powershell Community Extensions (PSCX) module (basically everything 7zip supports)
|
||||||
|
- For non-Windows targets, use the M(unarchive) module instead.
|
||||||
requirements:
|
requirements:
|
||||||
- PSCX
|
- PSCX
|
||||||
options:
|
options:
|
||||||
|
@ -75,6 +76,7 @@ notes:
|
||||||
- For extracting any compression types other than .zip, the PowerShellCommunityExtensions (PSCX) Module is required. This module (in conjunction with PSCX)
|
- For extracting any compression types other than .zip, the PowerShellCommunityExtensions (PSCX) Module is required. This module (in conjunction with PSCX)
|
||||||
has the ability to recursively unzip files within the src zip file provided and also functionality for many other compression types. If the destination
|
has the ability to recursively unzip files within the src zip file provided and also functionality for many other compression types. If the destination
|
||||||
directory does not exist, it will be created before unzipping the file. Specifying rm parameter will force removal of the src file after extraction.
|
directory does not exist, it will be created before unzipping the file. Specifying rm parameter will force removal of the src file after extraction.
|
||||||
|
- For non-Windows targets, use the M(unarchive) module instead.
|
||||||
author: Phil Schwartz
|
author: Phil Schwartz
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,7 @@ short_description: Interacts with webservices
|
||||||
description:
|
description:
|
||||||
- Interacts with FTP, HTTP and HTTPS web services.
|
- Interacts with FTP, HTTP and HTTPS web services.
|
||||||
- Supports Digest, Basic and WSSE HTTP authentication mechanisms.
|
- Supports Digest, Basic and WSSE HTTP authentication mechanisms.
|
||||||
|
- For non-Windows targets, use the M(uri) module instead.
|
||||||
options:
|
options:
|
||||||
url:
|
url:
|
||||||
description:
|
description:
|
||||||
|
@ -138,6 +139,8 @@ options:
|
||||||
description:
|
description:
|
||||||
- Specifies the client certificate(.pfx) that is used for a secure web request.
|
- Specifies the client certificate(.pfx) that is used for a secure web request.
|
||||||
version_added: '2.4'
|
version_added: '2.4'
|
||||||
|
notes:
|
||||||
|
- For non-Windows targets, use the M(uri) module instead.
|
||||||
author:
|
author:
|
||||||
- Corwin Brown (@blakfeld)
|
- Corwin Brown (@blakfeld)
|
||||||
- Dag Wieers (@dagwieers)
|
- Dag Wieers (@dagwieers)
|
||||||
|
|
|
@ -33,6 +33,7 @@ version_added: "1.7"
|
||||||
short_description: Manages local Windows user accounts
|
short_description: Manages local Windows user accounts
|
||||||
description:
|
description:
|
||||||
- Manages local Windows user accounts
|
- Manages local Windows user accounts
|
||||||
|
- For non-Windows targets, use the M(user) module instead.
|
||||||
options:
|
options:
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
|
@ -132,6 +133,8 @@ options:
|
||||||
- query
|
- query
|
||||||
default: present
|
default: present
|
||||||
aliases: []
|
aliases: []
|
||||||
|
notes:
|
||||||
|
- For non-Windows targets, use the M(user) module instead.
|
||||||
author:
|
author:
|
||||||
- "Paul Durivage (@angstwad)"
|
- "Paul Durivage (@angstwad)"
|
||||||
- "Chris Church (@cchurch)"
|
- "Chris Church (@cchurch)"
|
||||||
|
|
Loading…
Reference in a new issue