mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-14 00:50:50 -07:00
fix style in plugins (#10302)
Some checks are pending
EOL CI / EOL Sanity (Ⓐ2.16) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.16+py2.7) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.16+py3.11) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.16+py3.6) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/3/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/3/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/3/) (push) Waiting to run
nox / Run extra sanity tests (push) Waiting to run
Some checks are pending
EOL CI / EOL Sanity (Ⓐ2.16) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.16+py2.7) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.16+py3.11) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.16+py3.6) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/3/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/3/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/3/) (push) Waiting to run
nox / Run extra sanity tests (push) Waiting to run
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
329c2222fc
commit
580ac1e30d
42 changed files with 111 additions and 114 deletions
|
@ -72,7 +72,7 @@ options:
|
||||||
prompt_l10n:
|
prompt_l10n:
|
||||||
description:
|
description:
|
||||||
- List of localized strings to match for prompt detection.
|
- List of localized strings to match for prompt detection.
|
||||||
- If empty we will use the built in one.
|
- If empty the plugin uses the built-in one.
|
||||||
type: list
|
type: list
|
||||||
elements: string
|
elements: string
|
||||||
default: []
|
default: []
|
||||||
|
|
|
@ -73,7 +73,7 @@ options:
|
||||||
prompt_l10n:
|
prompt_l10n:
|
||||||
description:
|
description:
|
||||||
- List of localized strings to match for prompt detection.
|
- List of localized strings to match for prompt detection.
|
||||||
- If empty we will use the built in one.
|
- If empty the plugin uses the built-in one.
|
||||||
type: list
|
type: list
|
||||||
elements: string
|
elements: string
|
||||||
default: []
|
default: []
|
||||||
|
|
|
@ -71,10 +71,10 @@ options:
|
||||||
- section: machinectl_become_plugin
|
- section: machinectl_become_plugin
|
||||||
key: password
|
key: password
|
||||||
notes:
|
notes:
|
||||||
- When not using this plugin with user V(root), it only works correctly with a polkit rule which will alter the behaviour
|
- When not using this plugin with user V(root), it only works correctly with a polkit rule which alters the behaviour
|
||||||
of machinectl. This rule must alter the prompt behaviour to ask directly for the user credentials, if the user is allowed
|
of C(machinectl). This rule must alter the prompt behaviour to ask directly for the user credentials, if the user is allowed
|
||||||
to perform the action (take a look at the examples section). If such a rule is not present the plugin only work if it
|
to perform the action (take a look at the examples section). If such a rule is not present the plugin only works if it
|
||||||
is used in context with the root user, because then no further prompt will be shown by machinectl.
|
is used in context with the root user, because then no further prompt is shown by C(machinectl).
|
||||||
"""
|
"""
|
||||||
|
|
||||||
EXAMPLES = r"""
|
EXAMPLES = r"""
|
||||||
|
|
|
@ -61,7 +61,7 @@ options:
|
||||||
- name: ANSIBLE_RUN0_FLAGS
|
- name: ANSIBLE_RUN0_FLAGS
|
||||||
type: string
|
type: string
|
||||||
notes:
|
notes:
|
||||||
- This plugin will only work when a C(polkit) rule is in place.
|
- This plugin only works when a C(polkit) rule is in place.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
EXAMPLES = r"""
|
EXAMPLES = r"""
|
||||||
|
|
2
plugins/cache/pickle.py
vendored
2
plugins/cache/pickle.py
vendored
|
@ -17,7 +17,7 @@ options:
|
||||||
_uri:
|
_uri:
|
||||||
required: true
|
required: true
|
||||||
description:
|
description:
|
||||||
- Path in which the cache plugin will save the files.
|
- Path in which the cache plugin saves the files.
|
||||||
env:
|
env:
|
||||||
- name: ANSIBLE_CACHE_PLUGIN_CONNECTION
|
- name: ANSIBLE_CACHE_PLUGIN_CONNECTION
|
||||||
ini:
|
ini:
|
||||||
|
|
2
plugins/cache/yaml.py
vendored
2
plugins/cache/yaml.py
vendored
|
@ -17,7 +17,7 @@ options:
|
||||||
_uri:
|
_uri:
|
||||||
required: true
|
required: true
|
||||||
description:
|
description:
|
||||||
- Path in which the cache plugin will save the files.
|
- Path in which the cache plugin saves the files.
|
||||||
env:
|
env:
|
||||||
- name: ANSIBLE_CACHE_PLUGIN_CONNECTION
|
- name: ANSIBLE_CACHE_PLUGIN_CONNECTION
|
||||||
ini:
|
ini:
|
||||||
|
|
|
@ -15,8 +15,8 @@ type: stdout
|
||||||
short_description: Adds counters to the output items (tasks and hosts/task)
|
short_description: Adds counters to the output items (tasks and hosts/task)
|
||||||
description:
|
description:
|
||||||
- Use this callback when you need a kind of progress bar on a large environments.
|
- Use this callback when you need a kind of progress bar on a large environments.
|
||||||
- You will know how many tasks has the playbook to run, and which one is actually running.
|
- You can see how many tasks has the playbook to run, and which one is actually running.
|
||||||
- You will know how many hosts may run a task, and which of them is actually running.
|
- You can see how many hosts may run a task, and which of them is actually running.
|
||||||
extends_documentation_fragment:
|
extends_documentation_fragment:
|
||||||
- default_callback
|
- default_callback
|
||||||
requirements:
|
requirements:
|
||||||
|
|
|
@ -13,7 +13,7 @@ short_description: Minimal stdout output
|
||||||
extends_documentation_fragment:
|
extends_documentation_fragment:
|
||||||
- default_callback
|
- default_callback
|
||||||
description:
|
description:
|
||||||
- When in verbose mode it will act the same as the default callback.
|
- When in verbose mode it acts the same as the default callback.
|
||||||
author:
|
author:
|
||||||
- Dag Wieers (@dagwieers)
|
- Dag Wieers (@dagwieers)
|
||||||
requirements:
|
requirements:
|
||||||
|
|
|
@ -23,7 +23,7 @@ notes:
|
||||||
that is available using the other various execution contexts, such as playbook, play, task, and so on so forth.
|
that is available using the other various execution contexts, such as playbook, play, task, and so on so forth.
|
||||||
- Options being set by their respective variable input can only be set using the variable if the variable was set in a context
|
- Options being set by their respective variable input can only be set using the variable if the variable was set in a context
|
||||||
that is available to the respective callback. Use the C(ansible_callback_diy) dictionary to see what is available to a
|
that is available to the respective callback. Use the C(ansible_callback_diy) dictionary to see what is available to a
|
||||||
callback. Additionally, C(ansible_callback_diy.top_level_var_names) will output the top level variable names available
|
callback. Additionally, C(ansible_callback_diy.top_level_var_names) outputs the top level variable names available
|
||||||
to the callback.
|
to the callback.
|
||||||
- Each option value is rendered as a template before being evaluated. This allows for the dynamic usage of an option. For
|
- Each option value is rendered as a template before being evaluated. This allows for the dynamic usage of an option. For
|
||||||
example, V("{{ 'yellow' if ansible_callback_diy.result.is_changed else 'bright green' }}").
|
example, V("{{ 'yellow' if ansible_callback_diy.result.is_changed else 'bright green' }}").
|
||||||
|
|
|
@ -36,7 +36,7 @@ options:
|
||||||
env:
|
env:
|
||||||
- name: JABBER_PASS
|
- name: JABBER_PASS
|
||||||
to:
|
to:
|
||||||
description: Chat identifier that will receive the message.
|
description: Chat identifier that receives the message.
|
||||||
type: str
|
type: str
|
||||||
required: true
|
required: true
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -19,7 +19,7 @@ requirements:
|
||||||
options:
|
options:
|
||||||
log_folder:
|
log_folder:
|
||||||
default: /var/log/ansible/hosts
|
default: /var/log/ansible/hosts
|
||||||
description: The folder where log files will be created.
|
description: The folder where log files are created.
|
||||||
type: str
|
type: str
|
||||||
env:
|
env:
|
||||||
- name: ANSIBLE_LOG_FOLDER
|
- name: ANSIBLE_LOG_FOLDER
|
||||||
|
|
|
@ -11,7 +11,7 @@ type: notification
|
||||||
short_description: Posts task results to Azure Log Analytics
|
short_description: Posts task results to Azure Log Analytics
|
||||||
author: "Cyrus Li (@zhcli) <cyrus1006@gmail.com>"
|
author: "Cyrus Li (@zhcli) <cyrus1006@gmail.com>"
|
||||||
description:
|
description:
|
||||||
- This callback plugin will post task results in JSON formatted to an Azure Log Analytics workspace.
|
- This callback plugin posts task results in JSON formatted to an Azure Log Analytics workspace.
|
||||||
- Credits to authors of splunk callback plugin.
|
- Credits to authors of splunk callback plugin.
|
||||||
version_added: "2.4.0"
|
version_added: "2.4.0"
|
||||||
requirements:
|
requirements:
|
||||||
|
|
|
@ -11,7 +11,7 @@ name: logdna
|
||||||
type: notification
|
type: notification
|
||||||
short_description: Sends playbook logs to LogDNA
|
short_description: Sends playbook logs to LogDNA
|
||||||
description:
|
description:
|
||||||
- This callback will report logs from playbook actions, tasks, and events to LogDNA (U(https://app.logdna.com)).
|
- This callback reports logs from playbook actions, tasks, and events to LogDNA (U(https://app.logdna.com)).
|
||||||
requirements:
|
requirements:
|
||||||
- LogDNA Python Library (U(https://github.com/logdna/python))
|
- LogDNA Python Library (U(https://github.com/logdna/python))
|
||||||
- whitelisting in configuration
|
- whitelisting in configuration
|
||||||
|
|
|
@ -11,7 +11,7 @@ name: logentries
|
||||||
type: notification
|
type: notification
|
||||||
short_description: Sends events to Logentries
|
short_description: Sends events to Logentries
|
||||||
description:
|
description:
|
||||||
- This callback plugin will generate JSON objects and send them to Logentries using TCP for auditing/debugging purposes.
|
- This callback plugin generates JSON objects and send them to Logentries using TCP for auditing/debugging purposes.
|
||||||
requirements:
|
requirements:
|
||||||
- whitelisting in configuration
|
- whitelisting in configuration
|
||||||
- certifi (Python library)
|
- certifi (Python library)
|
||||||
|
|
|
@ -12,7 +12,7 @@ name: logstash
|
||||||
type: notification
|
type: notification
|
||||||
short_description: Sends events to Logstash
|
short_description: Sends events to Logstash
|
||||||
description:
|
description:
|
||||||
- This callback will report facts and task events to Logstash U(https://www.elastic.co/products/logstash).
|
- This callback reports facts and task events to Logstash U(https://www.elastic.co/products/logstash).
|
||||||
requirements:
|
requirements:
|
||||||
- whitelisting in configuration
|
- whitelisting in configuration
|
||||||
- logstash (Python library)
|
- logstash (Python library)
|
||||||
|
|
|
@ -11,7 +11,7 @@ name: mail
|
||||||
type: notification
|
type: notification
|
||||||
short_description: Sends failure events through email
|
short_description: Sends failure events through email
|
||||||
description:
|
description:
|
||||||
- This callback will report failures through email.
|
- This callback reports failures through email.
|
||||||
author:
|
author:
|
||||||
- Dag Wieers (@dagwieers)
|
- Dag Wieers (@dagwieers)
|
||||||
requirements:
|
requirements:
|
||||||
|
|
|
@ -35,8 +35,8 @@ options:
|
||||||
- Whether to enable this callback only if the given environment variable exists and it is set to V(true).
|
- Whether to enable this callback only if the given environment variable exists and it is set to V(true).
|
||||||
- This is handy when you use Configuration as Code and want to send distributed traces if running in the CI rather when
|
- This is handy when you use Configuration as Code and want to send distributed traces if running in the CI rather when
|
||||||
running Ansible locally.
|
running Ansible locally.
|
||||||
- For such, it evaluates the given O(enable_from_environment) value as environment variable and if set to true this
|
- For such, it evaluates the given O(enable_from_environment) value as environment variable and if set to V(true) this
|
||||||
plugin will be enabled.
|
plugin is enabled.
|
||||||
env:
|
env:
|
||||||
- name: ANSIBLE_OPENTELEMETRY_ENABLE_FROM_ENVIRONMENT
|
- name: ANSIBLE_OPENTELEMETRY_ENABLE_FROM_ENVIRONMENT
|
||||||
ini:
|
ini:
|
||||||
|
|
|
@ -16,7 +16,7 @@ requirements:
|
||||||
- the C(/usr/bin/say) command line program (standard on macOS) or C(espeak) command line program
|
- the C(/usr/bin/say) command line program (standard on macOS) or C(espeak) command line program
|
||||||
short_description: Notify using software speech synthesizer
|
short_description: Notify using software speech synthesizer
|
||||||
description:
|
description:
|
||||||
- This plugin will use the C(say) or C(espeak) program to "speak" about play events.
|
- This plugin uses C(say) or C(espeak) to "speak" about play events.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import platform
|
import platform
|
||||||
|
|
|
@ -11,7 +11,7 @@ type: notification
|
||||||
short_description: Sends task result events to Splunk HTTP Event Collector
|
short_description: Sends task result events to Splunk HTTP Event Collector
|
||||||
author: "Stuart Hirst (!UNKNOWN) <support@convergingdata.com>"
|
author: "Stuart Hirst (!UNKNOWN) <support@convergingdata.com>"
|
||||||
description:
|
description:
|
||||||
- This callback plugin will send task results as JSON formatted events to a Splunk HTTP collector.
|
- This callback plugin sends task results as JSON formatted events to a Splunk HTTP collector.
|
||||||
- The companion Splunk Monitoring & Diagnostics App is available here U(https://splunkbase.splunk.com/app/4023/).
|
- The companion Splunk Monitoring & Diagnostics App is available here U(https://splunkbase.splunk.com/app/4023/).
|
||||||
- Credit to "Ryan Currah (@ryancurrah)" for original source upon which this is based.
|
- Credit to "Ryan Currah (@ryancurrah)" for original source upon which this is based.
|
||||||
requirements:
|
requirements:
|
||||||
|
|
|
@ -11,7 +11,7 @@ type: notification
|
||||||
short_description: Sends task result events to Sumologic
|
short_description: Sends task result events to Sumologic
|
||||||
author: "Ryan Currah (@ryancurrah)"
|
author: "Ryan Currah (@ryancurrah)"
|
||||||
description:
|
description:
|
||||||
- This callback plugin will send task results as JSON formatted events to a Sumologic HTTP collector source.
|
- This callback plugin sends task results as JSON formatted events to a Sumologic HTTP collector source.
|
||||||
requirements:
|
requirements:
|
||||||
- Whitelisting this callback plugin
|
- Whitelisting this callback plugin
|
||||||
- 'Create a HTTP collector source in Sumologic and specify a custom timestamp format of V(yyyy-MM-dd HH:mm:ss ZZZZ) and
|
- 'Create a HTTP collector source in Sumologic and specify a custom timestamp format of V(yyyy-MM-dd HH:mm:ss ZZZZ) and
|
||||||
|
|
|
@ -17,7 +17,7 @@ description:
|
||||||
- This plugin logs ansible-playbook and ansible runs to a syslog server in JSON format.
|
- This plugin logs ansible-playbook and ansible runs to a syslog server in JSON format.
|
||||||
options:
|
options:
|
||||||
server:
|
server:
|
||||||
description: Syslog server that will receive the event.
|
description: Syslog server that receives the event.
|
||||||
type: str
|
type: str
|
||||||
env:
|
env:
|
||||||
- name: SYSLOG_SERVER
|
- name: SYSLOG_SERVER
|
||||||
|
|
|
@ -52,7 +52,7 @@ options:
|
||||||
remote_user:
|
remote_user:
|
||||||
description:
|
description:
|
||||||
- User to login/authenticate as.
|
- User to login/authenticate as.
|
||||||
- Can be set from the CLI via the C(--user) or C(-u) options.
|
- Can be set from the CLI with the C(--user) or C(-u) options.
|
||||||
type: string
|
type: string
|
||||||
default: root
|
default: root
|
||||||
vars:
|
vars:
|
||||||
|
|
|
@ -52,7 +52,7 @@ options:
|
||||||
remote_user:
|
remote_user:
|
||||||
description:
|
description:
|
||||||
- User to login/authenticate as.
|
- User to login/authenticate as.
|
||||||
- Can be set from the CLI via the C(--user) or C(-u) options.
|
- Can be set from the CLI with the C(--user) or C(-u) options.
|
||||||
type: string
|
type: string
|
||||||
default: root
|
default: root
|
||||||
vars:
|
vars:
|
||||||
|
|
|
@ -11,11 +11,11 @@ from __future__ import annotations
|
||||||
DOCUMENTATION = r"""
|
DOCUMENTATION = r"""
|
||||||
author: Rui Lopes (@rgl) <ruilopes.com>
|
author: Rui Lopes (@rgl) <ruilopes.com>
|
||||||
name: wsl
|
name: wsl
|
||||||
short_description: Run tasks in WSL distribution using wsl.exe CLI via SSH
|
short_description: Run tasks in WSL distribution using wsl.exe CLI using SSH
|
||||||
requirements:
|
requirements:
|
||||||
- paramiko
|
- paramiko
|
||||||
description:
|
description:
|
||||||
- Run commands or put/fetch files to an existing WSL distribution using wsl.exe CLI via SSH.
|
- Run commands or put/fetch files to an existing WSL distribution using wsl.exe CLI using SSH.
|
||||||
- Uses the Python SSH implementation (Paramiko) to connect to the WSL host.
|
- Uses the Python SSH implementation (Paramiko) to connect to the WSL host.
|
||||||
version_added: "10.6.0"
|
version_added: "10.6.0"
|
||||||
options:
|
options:
|
||||||
|
@ -50,7 +50,7 @@ options:
|
||||||
remote_user:
|
remote_user:
|
||||||
description:
|
description:
|
||||||
- User to login/authenticate as.
|
- User to login/authenticate as.
|
||||||
- Can be set from the CLI via the C(--user) or C(-u) options.
|
- Can be set from the CLI with the C(--user) or C(-u) options.
|
||||||
type: string
|
type: string
|
||||||
vars:
|
vars:
|
||||||
- name: ansible_user
|
- name: ansible_user
|
||||||
|
@ -69,7 +69,7 @@ options:
|
||||||
password:
|
password:
|
||||||
description:
|
description:
|
||||||
- Secret used to either login the SSH server or as a passphrase for SSH keys that require it.
|
- Secret used to either login the SSH server or as a passphrase for SSH keys that require it.
|
||||||
- Can be set from the CLI via the C(--ask-pass) option.
|
- Can be set from the CLI with the C(--ask-pass) option.
|
||||||
type: string
|
type: string
|
||||||
vars:
|
vars:
|
||||||
- name: ansible_password
|
- name: ansible_password
|
||||||
|
@ -109,7 +109,7 @@ options:
|
||||||
proxy_command:
|
proxy_command:
|
||||||
default: ""
|
default: ""
|
||||||
description:
|
description:
|
||||||
- Proxy information for running the connection via a jumphost.
|
- Proxy information for running the connection through a jumphost.
|
||||||
- This option is supported by paramiko version 1.9.0 or newer.
|
- This option is supported by paramiko version 1.9.0 or newer.
|
||||||
type: string
|
type: string
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -16,31 +16,31 @@ options:
|
||||||
alicloud_access_key:
|
alicloud_access_key:
|
||||||
description:
|
description:
|
||||||
- Alibaba Cloud access key. If not set then the value of environment variable E(ALICLOUD_ACCESS_KEY), E(ALICLOUD_ACCESS_KEY_ID)
|
- Alibaba Cloud access key. If not set then the value of environment variable E(ALICLOUD_ACCESS_KEY), E(ALICLOUD_ACCESS_KEY_ID)
|
||||||
will be used instead.
|
is used instead.
|
||||||
aliases: ['access_key_id', 'access_key']
|
aliases: ['access_key_id', 'access_key']
|
||||||
type: str
|
type: str
|
||||||
alicloud_secret_key:
|
alicloud_secret_key:
|
||||||
description:
|
description:
|
||||||
- Alibaba Cloud secret key. If not set then the value of environment variable E(ALICLOUD_SECRET_KEY), E(ALICLOUD_SECRET_ACCESS_KEY)
|
- Alibaba Cloud secret key. If not set then the value of environment variable E(ALICLOUD_SECRET_KEY), E(ALICLOUD_SECRET_ACCESS_KEY)
|
||||||
will be used instead.
|
is used instead.
|
||||||
aliases: ['secret_access_key', 'secret_key']
|
aliases: ['secret_access_key', 'secret_key']
|
||||||
type: str
|
type: str
|
||||||
alicloud_region:
|
alicloud_region:
|
||||||
description:
|
description:
|
||||||
- The Alibaba Cloud region to use. If not specified then the value of environment variable E(ALICLOUD_REGION), E(ALICLOUD_REGION_ID)
|
- The Alibaba Cloud region to use. If not specified then the value of environment variable E(ALICLOUD_REGION), E(ALICLOUD_REGION_ID)
|
||||||
will be used instead.
|
is used instead.
|
||||||
aliases: ['region', 'region_id']
|
aliases: ['region', 'region_id']
|
||||||
required: true
|
required: true
|
||||||
type: str
|
type: str
|
||||||
alicloud_security_token:
|
alicloud_security_token:
|
||||||
description:
|
description:
|
||||||
- The Alibaba Cloud security token. If not specified then the value of environment variable E(ALICLOUD_SECURITY_TOKEN)
|
- The Alibaba Cloud security token. If not specified then the value of environment variable E(ALICLOUD_SECURITY_TOKEN)
|
||||||
will be used instead.
|
is used instead.
|
||||||
aliases: ['security_token']
|
aliases: ['security_token']
|
||||||
type: str
|
type: str
|
||||||
alicloud_assume_role:
|
alicloud_assume_role:
|
||||||
description:
|
description:
|
||||||
- If provided with a role ARN, Ansible will attempt to assume this role using the supplied credentials.
|
- If provided with a role ARN, Ansible attempts to assume this role using the supplied credentials.
|
||||||
- The nested assume_role block supports C(alicloud_assume_role_arn), C(alicloud_assume_role_session_name), C(alicloud_assume_role_session_expiration)
|
- The nested assume_role block supports C(alicloud_assume_role_arn), C(alicloud_assume_role_session_name), C(alicloud_assume_role_session_expiration)
|
||||||
and C(alicloud_assume_role_policy).
|
and C(alicloud_assume_role_policy).
|
||||||
type: dict
|
type: dict
|
||||||
|
@ -48,7 +48,7 @@ options:
|
||||||
alicloud_assume_role_arn:
|
alicloud_assume_role_arn:
|
||||||
description:
|
description:
|
||||||
- The Alibaba Cloud C(role_arn). The ARN of the role to assume. If ARN is set to an empty string, it does not perform
|
- The Alibaba Cloud C(role_arn). The ARN of the role to assume. If ARN is set to an empty string, it does not perform
|
||||||
role switching. It supports environment variable E(ALICLOUD_ASSUME_ROLE_ARN). ansible will execute with provided credentials.
|
role switching. It supports environment variable E(ALICLOUD_ASSUME_ROLE_ARN). Ansible executes with provided credentials.
|
||||||
aliases: ['assume_role_arn']
|
aliases: ['assume_role_arn']
|
||||||
type: str
|
type: str
|
||||||
alicloud_assume_role_session_name:
|
alicloud_assume_role_session_name:
|
||||||
|
@ -68,7 +68,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- The RAM Role Name attached on a ECS instance for API operations. You can retrieve this from the 'Access Control' section
|
- The RAM Role Name attached on a ECS instance for API operations. You can retrieve this from the 'Access Control' section
|
||||||
of the Alibaba Cloud console.
|
of the Alibaba Cloud console.
|
||||||
- If you are running Ansible from an ECS instance with RAM Instance using RAM Role, Ansible will just access the metadata
|
- If you are running Ansible from an ECS instance with RAM Instance using RAM Role, Ansible just accesses the metadata
|
||||||
U(http://100.100.100.200/latest/meta-data/ram/security-credentials/<ecs_role_name>) to obtain the STS credential.
|
U(http://100.100.100.200/latest/meta-data/ram/security-credentials/<ecs_role_name>) to obtain the STS credential.
|
||||||
This is a preferred approach over any other when running in ECS as you can avoid hard coding credentials. Instead
|
This is a preferred approach over any other when running in ECS as you can avoid hard coding credentials. Instead
|
||||||
these are leased on-the-fly by Ansible which reduces the chance of leakage.
|
these are leased on-the-fly by Ansible which reduces the chance of leakage.
|
||||||
|
@ -83,7 +83,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- This is the path to the shared credentials file. It can also be sourced from the E(ALICLOUD_SHARED_CREDENTIALS_FILE)
|
- This is the path to the shared credentials file. It can also be sourced from the E(ALICLOUD_SHARED_CREDENTIALS_FILE)
|
||||||
environment variable.
|
environment variable.
|
||||||
- If this is not set and a profile is specified, C(~/.aliyun/config.json) will be used.
|
- If this is not set and a profile is specified, C(~/.aliyun/config.json) is used.
|
||||||
type: str
|
type: str
|
||||||
author:
|
author:
|
||||||
- "He Guimin (@xiaozhu36)"
|
- "He Guimin (@xiaozhu36)"
|
||||||
|
|
|
@ -17,7 +17,7 @@ attributes:
|
||||||
check_mode:
|
check_mode:
|
||||||
description: Can run in C(check_mode) and return changed status prediction without modifying target.
|
description: Can run in C(check_mode) and return changed status prediction without modifying target.
|
||||||
diff_mode:
|
diff_mode:
|
||||||
description: Will return details on what has changed (or possibly needs changing in C(check_mode)), when in diff mode.
|
description: Returns details on what has changed (or possibly needs changing in C(check_mode)), when in diff mode.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
PLATFORM = r"""
|
PLATFORM = r"""
|
||||||
|
@ -57,7 +57,7 @@ attributes:
|
||||||
options: {}
|
options: {}
|
||||||
attributes:
|
attributes:
|
||||||
facts:
|
facts:
|
||||||
description: Action returns an C(ansible_facts) dictionary that will update existing host facts.
|
description: Action returns an C(ansible_facts) dictionary that updates existing host facts.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Should be used together with the standard fragment and the FACTS fragment
|
# Should be used together with the standard fragment and the FACTS fragment
|
||||||
|
|
|
@ -16,17 +16,17 @@ options:
|
||||||
client_id:
|
client_id:
|
||||||
description:
|
description:
|
||||||
- The OAuth consumer key.
|
- The OAuth consumer key.
|
||||||
- If not set the environment variable E(BITBUCKET_CLIENT_ID) will be used.
|
- If not set the environment variable E(BITBUCKET_CLIENT_ID) is used.
|
||||||
type: str
|
type: str
|
||||||
client_secret:
|
client_secret:
|
||||||
description:
|
description:
|
||||||
- The OAuth consumer secret.
|
- The OAuth consumer secret.
|
||||||
- If not set the environment variable E(BITBUCKET_CLIENT_SECRET) will be used.
|
- If not set the environment variable E(BITBUCKET_CLIENT_SECRET) is used.
|
||||||
type: str
|
type: str
|
||||||
user:
|
user:
|
||||||
description:
|
description:
|
||||||
- The username.
|
- The username.
|
||||||
- If not set the environment variable E(BITBUCKET_USERNAME) will be used.
|
- If not set the environment variable E(BITBUCKET_USERNAME) is used.
|
||||||
- O(ignore:username) is an alias of O(user) since community.general 6.0.0. It was an alias of O(workspace) before.
|
- O(ignore:username) is an alias of O(user) since community.general 6.0.0. It was an alias of O(workspace) before.
|
||||||
type: str
|
type: str
|
||||||
version_added: 4.0.0
|
version_added: 4.0.0
|
||||||
|
@ -34,7 +34,7 @@ options:
|
||||||
password:
|
password:
|
||||||
description:
|
description:
|
||||||
- The App password.
|
- The App password.
|
||||||
- If not set the environment variable E(BITBUCKET_PASSWORD) will be used.
|
- If not set the environment variable E(BITBUCKET_PASSWORD) is used.
|
||||||
type: str
|
type: str
|
||||||
version_added: 4.0.0
|
version_added: 4.0.0
|
||||||
notes:
|
notes:
|
||||||
|
|
|
@ -28,12 +28,12 @@ options:
|
||||||
mcp_user:
|
mcp_user:
|
||||||
description:
|
description:
|
||||||
- The username used to authenticate to the CloudControl API.
|
- The username used to authenticate to the CloudControl API.
|
||||||
- If not specified, will fall back to E(MCP_USER) from environment variable or C(~/.dimensiondata).
|
- If not specified, falls back to E(MCP_USER) from environment variable or C(~/.dimensiondata).
|
||||||
type: str
|
type: str
|
||||||
mcp_password:
|
mcp_password:
|
||||||
description:
|
description:
|
||||||
- The password used to authenticate to the CloudControl API.
|
- The password used to authenticate to the CloudControl API.
|
||||||
- If not specified, will fall back to E(MCP_PASSWORD) from environment variable or C(~/.dimensiondata).
|
- If not specified, falls back to E(MCP_PASSWORD) from environment variable or C(~/.dimensiondata).
|
||||||
- Required if O(mcp_user) is specified.
|
- Required if O(mcp_user) is specified.
|
||||||
type: str
|
type: str
|
||||||
location:
|
location:
|
||||||
|
@ -43,7 +43,7 @@ options:
|
||||||
required: true
|
required: true
|
||||||
validate_certs:
|
validate_certs:
|
||||||
description:
|
description:
|
||||||
- If V(false), SSL certificates will not be validated.
|
- If V(false), SSL certificates are not validated.
|
||||||
- This should only be used on private instances of the CloudControl API that use self-signed certificates.
|
- This should only be used on private instances of the CloudControl API that use self-signed certificates.
|
||||||
type: bool
|
type: bool
|
||||||
default: true
|
default: true
|
||||||
|
|
|
@ -18,13 +18,13 @@ options:
|
||||||
settings:
|
settings:
|
||||||
description:
|
description:
|
||||||
- Specifies the settings module to use.
|
- Specifies the settings module to use.
|
||||||
- The value will be passed as is to the C(--settings) argument in C(django-admin).
|
- The value is passed as is to the C(--settings) argument in C(django-admin).
|
||||||
type: str
|
type: str
|
||||||
required: true
|
required: true
|
||||||
pythonpath:
|
pythonpath:
|
||||||
description:
|
description:
|
||||||
- Adds the given filesystem path to the Python import search path.
|
- Adds the given filesystem path to the Python import search path.
|
||||||
- The value will be passed as is to the C(--pythonpath) argument in C(django-admin).
|
- The value is passed as is to the C(--pythonpath) argument in C(django-admin).
|
||||||
type: path
|
type: path
|
||||||
traceback:
|
traceback:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -55,5 +55,5 @@ notes:
|
||||||
- For authentication, you can set domain using the E(ANSIBLE_HWC_DOMAIN) environment variable.
|
- For authentication, you can set domain using the E(ANSIBLE_HWC_DOMAIN) environment variable.
|
||||||
- For authentication, you can set project using the E(ANSIBLE_HWC_PROJECT) environment variable.
|
- For authentication, you can set project using the E(ANSIBLE_HWC_PROJECT) environment variable.
|
||||||
- For authentication, you can set region using the E(ANSIBLE_HWC_REGION) environment variable.
|
- For authentication, you can set region using the E(ANSIBLE_HWC_REGION) environment variable.
|
||||||
- Environment variables values will only be used if the playbook values are not set.
|
- Environment variables values are only used when the playbook values are not set.
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -20,13 +20,13 @@ options:
|
||||||
default: localhost
|
default: localhost
|
||||||
username:
|
username:
|
||||||
description:
|
description:
|
||||||
- Username that will be used to authenticate against InfluxDB server.
|
- Username that is used to authenticate against InfluxDB server.
|
||||||
type: str
|
type: str
|
||||||
default: root
|
default: root
|
||||||
aliases: [login_username]
|
aliases: [login_username]
|
||||||
password:
|
password:
|
||||||
description:
|
description:
|
||||||
- Password that will be used to authenticate against InfluxDB server.
|
- Password that is used to authenticate against InfluxDB server.
|
||||||
type: str
|
type: str
|
||||||
default: root
|
default: root
|
||||||
aliases: [login_password]
|
aliases: [login_password]
|
||||||
|
@ -44,7 +44,7 @@ options:
|
||||||
version_added: '0.2.0'
|
version_added: '0.2.0'
|
||||||
validate_certs:
|
validate_certs:
|
||||||
description:
|
description:
|
||||||
- If set to V(false), the SSL certificates will not be validated.
|
- If set to V(false), the SSL certificates are not validated.
|
||||||
- This should only set to V(false) used on personally controlled sites using self-signed certificates.
|
- This should only set to V(false) used on personally controlled sites using self-signed certificates.
|
||||||
type: bool
|
type: bool
|
||||||
default: true
|
default: true
|
||||||
|
@ -55,11 +55,11 @@ options:
|
||||||
default: false
|
default: false
|
||||||
timeout:
|
timeout:
|
||||||
description:
|
description:
|
||||||
- Number of seconds Requests will wait for client to establish a connection.
|
- Number of seconds Requests waits for client to establish a connection.
|
||||||
type: int
|
type: int
|
||||||
retries:
|
retries:
|
||||||
description:
|
description:
|
||||||
- Number of retries client will try before aborting.
|
- Number of retries client performs before aborting.
|
||||||
- V(0) indicates try until success.
|
- V(0) indicates try until success.
|
||||||
- Only available when using C(python-influxdb) >= 4.1.0.
|
- Only available when using C(python-influxdb) >= 4.1.0.
|
||||||
type: int
|
type: int
|
||||||
|
|
|
@ -16,43 +16,43 @@ options:
|
||||||
ipa_port:
|
ipa_port:
|
||||||
description:
|
description:
|
||||||
- Port of FreeIPA / IPA server.
|
- Port of FreeIPA / IPA server.
|
||||||
- If the value is not specified in the task, the value of environment variable E(IPA_PORT) will be used instead.
|
- If the value is not specified in the task, the value of environment variable E(IPA_PORT) is used instead.
|
||||||
- If both the environment variable E(IPA_PORT) and the value are not specified in the task, then default value is set.
|
- If both the environment variable E(IPA_PORT) and the value are not specified in the task, then default value is set.
|
||||||
type: int
|
type: int
|
||||||
default: 443
|
default: 443
|
||||||
ipa_host:
|
ipa_host:
|
||||||
description:
|
description:
|
||||||
- IP or hostname of IPA server.
|
- IP or hostname of IPA server.
|
||||||
- If the value is not specified in the task, the value of environment variable E(IPA_HOST) will be used instead.
|
- If the value is not specified in the task, the value of environment variable E(IPA_HOST) is used instead.
|
||||||
- If both the environment variable E(IPA_HOST) and the value are not specified in the task, then DNS will be used to
|
- If both the environment variable E(IPA_HOST) and the value are not specified in the task, then DNS is used to try
|
||||||
try to discover the FreeIPA server.
|
to discover the FreeIPA server.
|
||||||
- The relevant entry needed in FreeIPA is the C(ipa-ca) entry.
|
- The relevant entry needed in FreeIPA is the C(ipa-ca) entry.
|
||||||
- If neither the DNS entry, nor the environment E(IPA_HOST), nor the value are available in the task, then the default
|
- If neither the DNS entry, nor the environment E(IPA_HOST), nor the value are available in the task, then the default
|
||||||
value will be used.
|
value is used.
|
||||||
type: str
|
type: str
|
||||||
default: ipa.example.com
|
default: ipa.example.com
|
||||||
ipa_user:
|
ipa_user:
|
||||||
description:
|
description:
|
||||||
- Administrative account used on IPA server.
|
- Administrative account used on IPA server.
|
||||||
- If the value is not specified in the task, the value of environment variable E(IPA_USER) will be used instead.
|
- If the value is not specified in the task, the value of environment variable E(IPA_USER) is used instead.
|
||||||
- If both the environment variable E(IPA_USER) and the value are not specified in the task, then default value is set.
|
- If both the environment variable E(IPA_USER) and the value are not specified in the task, then default value is set.
|
||||||
type: str
|
type: str
|
||||||
default: admin
|
default: admin
|
||||||
ipa_pass:
|
ipa_pass:
|
||||||
description:
|
description:
|
||||||
- Password of administrative user.
|
- Password of administrative user.
|
||||||
- If the value is not specified in the task, the value of environment variable E(IPA_PASS) will be used instead.
|
- If the value is not specified in the task, the value of environment variable E(IPA_PASS) is used instead.
|
||||||
- Note that if the C(urllib_gssapi) library is available, it is possible to use GSSAPI to authenticate to FreeIPA.
|
- Note that if the C(urllib_gssapi) library is available, it is possible to use GSSAPI to authenticate to FreeIPA.
|
||||||
- If the environment variable E(KRB5CCNAME) is available, the module will use this kerberos credentials cache to authenticate
|
- If the environment variable E(KRB5CCNAME) is available, the module uses this Kerberos credentials cache to authenticate
|
||||||
to the FreeIPA server.
|
to the FreeIPA server.
|
||||||
- If the environment variable E(KRB5_CLIENT_KTNAME) is available, and E(KRB5CCNAME) is not; the module will use this
|
- If the environment variable E(KRB5_CLIENT_KTNAME) is available, and E(KRB5CCNAME) is not; the module uses this Kerberos
|
||||||
kerberos keytab to authenticate.
|
keytab to authenticate.
|
||||||
- If GSSAPI is not available, the usage of O(ipa_pass) is required.
|
- If GSSAPI is not available, the usage of O(ipa_pass) is required.
|
||||||
type: str
|
type: str
|
||||||
ipa_prot:
|
ipa_prot:
|
||||||
description:
|
description:
|
||||||
- Protocol used by IPA server.
|
- Protocol used by IPA server.
|
||||||
- If the value is not specified in the task, the value of environment variable E(IPA_PROT) will be used instead.
|
- If the value is not specified in the task, the value of environment variable E(IPA_PROT) is used instead.
|
||||||
- If both the environment variable E(IPA_PROT) and the value are not specified in the task, then default value is set.
|
- If both the environment variable E(IPA_PROT) and the value are not specified in the task, then default value is set.
|
||||||
type: str
|
type: str
|
||||||
choices: [http, https]
|
choices: [http, https]
|
||||||
|
@ -60,7 +60,7 @@ options:
|
||||||
validate_certs:
|
validate_certs:
|
||||||
description:
|
description:
|
||||||
- This only applies if O(ipa_prot) is V(https).
|
- This only applies if O(ipa_prot) is V(https).
|
||||||
- If set to V(false), the SSL certificates will not be validated.
|
- If set to V(false), the SSL certificates are not validated.
|
||||||
- This should only set to V(false) used on personally controlled sites using self-signed certificates.
|
- This should only set to V(false) used on personally controlled sites using self-signed certificates.
|
||||||
type: bool
|
type: bool
|
||||||
default: true
|
default: true
|
||||||
|
@ -68,7 +68,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Specifies idle timeout (in seconds) for the connection.
|
- Specifies idle timeout (in seconds) for the connection.
|
||||||
- For bulk operations, you may want to increase this in order to avoid timeout from IPA server.
|
- For bulk operations, you may want to increase this in order to avoid timeout from IPA server.
|
||||||
- If the value is not specified in the task, the value of environment variable E(IPA_TIMEOUT) will be used instead.
|
- If the value is not specified in the task, the value of environment variable E(IPA_TIMEOUT) is used instead.
|
||||||
- If both the environment variable E(IPA_TIMEOUT) and the value are not specified in the task, then default value is
|
- If both the environment variable E(IPA_TIMEOUT) and the value are not specified in the task, then default value is
|
||||||
set.
|
set.
|
||||||
type: int
|
type: int
|
||||||
|
|
|
@ -14,9 +14,9 @@ class ModuleDocFragment(object):
|
||||||
# Standard LDAP documentation fragment
|
# Standard LDAP documentation fragment
|
||||||
DOCUMENTATION = r"""
|
DOCUMENTATION = r"""
|
||||||
notes:
|
notes:
|
||||||
- The default authentication settings will attempt to use a SASL EXTERNAL bind over a UNIX domain socket. This works well
|
- The default authentication settings attempts to use a SASL EXTERNAL bind over a UNIX domain socket. This works well with
|
||||||
with the default Ubuntu install for example, which includes a C(cn=peercred,cn=external,cn=auth) ACL rule allowing root
|
the default Ubuntu install for example, which includes a C(cn=peercred,cn=external,cn=auth) ACL rule allowing root to
|
||||||
to modify the server configuration. If you need to use a simple bind to access your server, pass the credentials in O(bind_dn)
|
modify the server configuration. If you need to use a simple bind to access your server, pass the credentials in O(bind_dn)
|
||||||
and O(bind_pw).
|
and O(bind_pw).
|
||||||
options:
|
options:
|
||||||
bind_dn:
|
bind_dn:
|
||||||
|
@ -76,7 +76,7 @@ options:
|
||||||
default: false
|
default: false
|
||||||
validate_certs:
|
validate_certs:
|
||||||
description:
|
description:
|
||||||
- If set to V(false), SSL certificates will not be validated.
|
- If set to V(false), SSL certificates are not validated.
|
||||||
- This should only be used on sites using self-signed certificates.
|
- This should only be used on sites using self-signed certificates.
|
||||||
type: bool
|
type: bool
|
||||||
default: true
|
default: true
|
||||||
|
@ -90,9 +90,9 @@ options:
|
||||||
xorder_discovery:
|
xorder_discovery:
|
||||||
description:
|
description:
|
||||||
- Set the behavior on how to process Xordered DNs.
|
- Set the behavior on how to process Xordered DNs.
|
||||||
- V(enable) will perform a C(ONELEVEL) search below the superior RDN to find the matching DN.
|
- V(enable) performs a C(ONELEVEL) search below the superior RDN to find the matching DN.
|
||||||
- V(disable) will always use the DN unmodified (as passed by the O(dn) parameter).
|
- V(disable) always uses the DN unmodified (as passed by the O(dn) parameter).
|
||||||
- V(auto) will only perform a search if the first RDN does not contain an index number (C({x})).
|
- V(auto) only performs a search if the first RDN does not contain an index number (C({x})).
|
||||||
type: str
|
type: str
|
||||||
choices: ['enable', 'auto', 'disable']
|
choices: ['enable', 'auto', 'disable']
|
||||||
default: auto
|
default: auto
|
||||||
|
|
|
@ -18,8 +18,8 @@ options:
|
||||||
aliases: ['vault_password']
|
aliases: ['vault_password']
|
||||||
type: str
|
type: str
|
||||||
section:
|
section:
|
||||||
description: Item section containing the field to retrieve (case-insensitive). If absent will return first match from
|
description: Item section containing the field to retrieve (case-insensitive). If absent, returns first match from any
|
||||||
any section.
|
section.
|
||||||
domain:
|
domain:
|
||||||
description: Domain of 1Password.
|
description: Domain of 1Password.
|
||||||
default: '1password.com'
|
default: '1password.com'
|
||||||
|
@ -42,7 +42,7 @@ options:
|
||||||
- Only works with 1Password CLI version 2 or later.
|
- Only works with 1Password CLI version 2 or later.
|
||||||
type: str
|
type: str
|
||||||
vault:
|
vault:
|
||||||
description: Vault containing the item to retrieve (case-insensitive). If absent will search all vaults.
|
description: Vault containing the item to retrieve (case-insensitive). If absent, searches all vaults.
|
||||||
type: str
|
type: str
|
||||||
connect_host:
|
connect_host:
|
||||||
description: The host for 1Password Connect. Must be used in combination with O(connect_token).
|
description: The host for 1Password Connect. Must be used in combination with O(connect_token).
|
||||||
|
@ -65,10 +65,9 @@ options:
|
||||||
- name: OP_SERVICE_ACCOUNT_TOKEN
|
- name: OP_SERVICE_ACCOUNT_TOKEN
|
||||||
version_added: 8.2.0
|
version_added: 8.2.0
|
||||||
notes:
|
notes:
|
||||||
- This lookup will use an existing 1Password session if one exists. If not, and you have already performed an initial sign
|
- This lookup uses an existing 1Password session if one exists. If not, and you have already performed an initial sign in
|
||||||
in (meaning C(~/.op/config), C(~/.config/op/config) or C(~/.config/.op/config) exists), then only the O(master_password)
|
(meaning C(~/.op/config), C(~/.config/op/config) or C(~/.config/.op/config) exists), then only the O(master_password)
|
||||||
is required. You may optionally specify O(subdomain) in this scenario, otherwise the last used subdomain will be used
|
is required. You may optionally specify O(subdomain) in this scenario, otherwise the last used subdomain is used by C(op).
|
||||||
by C(op).
|
|
||||||
- This lookup can perform an initial login by providing O(subdomain), O(username), O(secret_key), and O(master_password).
|
- This lookup can perform an initial login by providing O(subdomain), O(username), O(secret_key), and O(master_password).
|
||||||
- Can target a specific account by providing the O(account_id).
|
- Can target a specific account by providing the O(account_id).
|
||||||
- Due to the B(very) sensitive nature of these credentials, it is B(highly) recommended that you only pass in the minimal
|
- Due to the B(very) sensitive nature of these credentials, it is B(highly) recommended that you only pass in the minimal
|
||||||
|
|
|
@ -17,8 +17,8 @@ options:
|
||||||
description:
|
description:
|
||||||
- Path to a JSON configuration file containing the OneView client configuration. The configuration file is optional
|
- Path to a JSON configuration file containing the OneView client configuration. The configuration file is optional
|
||||||
and when used should be present in the host running the ansible commands. If the file path is not provided, the configuration
|
and when used should be present in the host running the ansible commands. If the file path is not provided, the configuration
|
||||||
will be loaded from environment variables. For links to example configuration files or how to use the environment
|
is loaded from environment variables. For links to example configuration files or how to use the environment variables
|
||||||
variables verify the notes section.
|
verify the notes section.
|
||||||
type: path
|
type: path
|
||||||
api_version:
|
api_version:
|
||||||
description:
|
description:
|
||||||
|
@ -49,16 +49,16 @@ notes:
|
||||||
U(https://github.com/HewlettPackard/oneview-ansible/blob/master/examples/oneview_config-rename.json).'
|
U(https://github.com/HewlettPackard/oneview-ansible/blob/master/examples/oneview_config-rename.json).'
|
||||||
- 'Check how to use environment variables for configuration at: U(https://github.com/HewlettPackard/oneview-ansible#environment-variables).'
|
- 'Check how to use environment variables for configuration at: U(https://github.com/HewlettPackard/oneview-ansible#environment-variables).'
|
||||||
- 'Additional Playbooks for the HPE OneView Ansible modules can be found at: U(https://github.com/HewlettPackard/oneview-ansible/tree/master/examples).'
|
- 'Additional Playbooks for the HPE OneView Ansible modules can be found at: U(https://github.com/HewlettPackard/oneview-ansible/tree/master/examples).'
|
||||||
- 'The OneView API version used will directly affect returned and expected fields in resources. Information on setting the
|
- 'The OneView API version used directly affects returned and expected fields in resources. Information on setting the desired
|
||||||
desired API version and can be found at: U(https://github.com/HewlettPackard/oneview-ansible#setting-your-oneview-version).'
|
API version and can be found at: U(https://github.com/HewlettPackard/oneview-ansible#setting-your-oneview-version).'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
VALIDATEETAG = r"""
|
VALIDATEETAG = r"""
|
||||||
options:
|
options:
|
||||||
validate_etag:
|
validate_etag:
|
||||||
description:
|
description:
|
||||||
- When the ETag Validation is enabled, the request will be conditionally processed only if the current ETag for the
|
- When the ETag Validation is enabled, the request is conditionally processed only if the current ETag for the resource
|
||||||
resource matches the ETag provided in the data.
|
matches the ETag provided in the data.
|
||||||
type: bool
|
type: bool
|
||||||
default: true
|
default: true
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -21,8 +21,8 @@ options:
|
||||||
port:
|
port:
|
||||||
description:
|
description:
|
||||||
- Specifies the port to use when building the connection to the remote device. This value applies to either O(transport=cli)
|
- Specifies the port to use when building the connection to the remote device. This value applies to either O(transport=cli)
|
||||||
or O(transport=rest). The port value will default to the appropriate transport common port if none is provided in
|
or O(transport=rest). The port value defaults to the appropriate transport common port if none is provided in the
|
||||||
the task. (cli=22, http=80, https=443). Note this argument does not affect the SSH transport.
|
task. (cli=22, http=80, https=443). Note this argument does not affect the SSH transport.
|
||||||
type: int
|
type: int
|
||||||
default: 0 (use common port)
|
default: 0 (use common port)
|
||||||
username:
|
username:
|
||||||
|
@ -30,25 +30,24 @@ options:
|
||||||
- Configures the username to use to authenticate the connection to the remote device. This value is used to authenticate
|
- Configures the username to use to authenticate the connection to the remote device. This value is used to authenticate
|
||||||
either the CLI login or the eAPI authentication depending on which transport is used. Note this argument does not
|
either the CLI login or the eAPI authentication depending on which transport is used. Note this argument does not
|
||||||
affect the SSH transport. If the value is not specified in the task, the value of environment variable E(ANSIBLE_NET_USERNAME)
|
affect the SSH transport. If the value is not specified in the task, the value of environment variable E(ANSIBLE_NET_USERNAME)
|
||||||
will be used instead.
|
is used instead.
|
||||||
type: str
|
type: str
|
||||||
password:
|
password:
|
||||||
description:
|
description:
|
||||||
- Specifies the password to use to authenticate the connection to the remote device. This is a common argument used
|
- Specifies the password to use to authenticate the connection to the remote device. This is a common argument used
|
||||||
for either O(transport=cli) or O(transport=rest). Note this argument does not affect the SSH transport. If the value
|
for either O(transport=cli) or O(transport=rest). Note this argument does not affect the SSH transport. If the value
|
||||||
is not specified in the task, the value of environment variable E(ANSIBLE_NET_PASSWORD) will be used instead.
|
is not specified in the task, the value of environment variable E(ANSIBLE_NET_PASSWORD) is used instead.
|
||||||
type: str
|
type: str
|
||||||
timeout:
|
timeout:
|
||||||
description:
|
description:
|
||||||
- Specifies the timeout in seconds for communicating with the network device for either connecting or sending commands.
|
- Specifies the timeout in seconds for communicating with the network device for either connecting or sending commands.
|
||||||
If the timeout is exceeded before the operation is completed, the module will error.
|
If the timeout is exceeded before the operation is completed, the module fails.
|
||||||
type: int
|
type: int
|
||||||
default: 10
|
default: 10
|
||||||
ssh_keyfile:
|
ssh_keyfile:
|
||||||
description:
|
description:
|
||||||
- Specifies the SSH key to use to authenticate the connection to the remote device. This argument is only used for O(transport=cli).
|
- Specifies the SSH key to use to authenticate the connection to the remote device. This argument is only used for O(transport=cli).
|
||||||
If the value is not specified in the task, the value of environment variable E(ANSIBLE_NET_SSH_KEYFILE) will be used
|
If the value is not specified in the task, the value of environment variable E(ANSIBLE_NET_SSH_KEYFILE) is used instead.
|
||||||
instead.
|
|
||||||
type: path
|
type: path
|
||||||
transport:
|
transport:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -54,9 +54,9 @@ options:
|
||||||
auth_type:
|
auth_type:
|
||||||
description:
|
description:
|
||||||
- The type of authentication to use for making API requests. By default O(auth_type=api_key) based authentication is
|
- The type of authentication to use for making API requests. By default O(auth_type=api_key) based authentication is
|
||||||
performed and the API key (see O(api_user_key_file)) in your config file will be used. If this 'auth_type' module
|
performed and the API key (see O(api_user_key_file)) in your config file is used. If O(auth_type) is not specified,
|
||||||
option is not specified, the value of the E(OCI_ANSIBLE_AUTH_TYPE), if any, is used. Use O(auth_type=instance_principal)
|
the value of the E(OCI_ANSIBLE_AUTH_TYPE), if any, is used. Use O(auth_type=instance_principal) to use instance principal
|
||||||
to use instance principal based authentication when running ansible playbooks within an OCI compute instance.
|
based authentication when running ansible playbooks within an OCI compute instance.
|
||||||
choices: ['api_key', 'instance_principal']
|
choices: ['api_key', 'instance_principal']
|
||||||
default: 'api_key'
|
default: 'api_key'
|
||||||
type: str
|
type: str
|
||||||
|
|
|
@ -13,13 +13,13 @@ class ModuleDocFragment(object):
|
||||||
options:
|
options:
|
||||||
global:
|
global:
|
||||||
description:
|
description:
|
||||||
- The module will pass the C(--global) argument to C(pipx), to execute actions in global scope.
|
- The module passes the C(--global) argument to C(pipx), to execute actions in global scope.
|
||||||
type: bool
|
type: bool
|
||||||
default: false
|
default: false
|
||||||
executable:
|
executable:
|
||||||
description:
|
description:
|
||||||
- Path to the C(pipx) installed in the system.
|
- Path to the C(pipx) installed in the system.
|
||||||
- If not specified, the module will use C(python -m pipx) to run the tool, using the same Python interpreter as ansible
|
- If not specified, the module uses C(python -m pipx) to run the tool, using the same Python interpreter as ansible
|
||||||
itself.
|
itself.
|
||||||
type: path
|
type: path
|
||||||
requirements:
|
requirements:
|
||||||
|
@ -27,8 +27,8 @@ requirements:
|
||||||
notes:
|
notes:
|
||||||
- This module does not install the C(pipx) python package, however that can be easily done with the module M(ansible.builtin.pip).
|
- This module does not install the C(pipx) python package, however that can be easily done with the module M(ansible.builtin.pip).
|
||||||
- This module does not require C(pipx) to be in the shell C(PATH), but it must be loadable by Python as a module.
|
- This module does not require C(pipx) to be in the shell C(PATH), but it must be loadable by Python as a module.
|
||||||
- This module will honor C(pipx) environment variables such as but not limited to E(PIPX_HOME) and E(PIPX_BIN_DIR) passed
|
- This module honors C(pipx) environment variables such as but not limited to E(PIPX_HOME) and E(PIPX_BIN_DIR) passed using
|
||||||
using the R(environment Ansible keyword, playbooks_environment).
|
the R(environment Ansible keyword, playbooks_environment).
|
||||||
seealso:
|
seealso:
|
||||||
- name: C(pipx) command manual page
|
- name: C(pipx) command manual page
|
||||||
description: Manual page for the command.
|
description: Manual page for the command.
|
||||||
|
|
|
@ -15,7 +15,7 @@ class ModuleDocFragment(object):
|
||||||
options:
|
options:
|
||||||
validate_certs:
|
validate_certs:
|
||||||
description:
|
description:
|
||||||
- If V(false), TLS/SSL certificates will not be validated.
|
- If V(false), TLS/SSL certificates are not validated.
|
||||||
- Set this to V(true) to enable certificate checking. Should be used together with O(ca_path).
|
- Set this to V(true) to enable certificate checking. Should be used together with O(ca_path).
|
||||||
type: bool
|
type: bool
|
||||||
default: false
|
default: false
|
||||||
|
|
|
@ -45,7 +45,7 @@ options:
|
||||||
default: true
|
default: true
|
||||||
ca_certs:
|
ca_certs:
|
||||||
description:
|
description:
|
||||||
- Path to root certificates file. If not set and O(tls) is set to V(true), certifi ca-certificates will be used.
|
- Path to root certificates file. If not set and O(tls) is set to V(true), certifi's CA certificates are used.
|
||||||
type: str
|
type: str
|
||||||
client_cert_file:
|
client_cert_file:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -49,8 +49,8 @@ options:
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- The desired state of the object.
|
- The desired state of the object.
|
||||||
- V(present) will create or update an object.
|
- V(present) creates or updates an object.
|
||||||
- V(absent) will delete an object if it was present.
|
- V(absent) deletes an object if present.
|
||||||
type: str
|
type: str
|
||||||
choices: [absent, present]
|
choices: [absent, present]
|
||||||
default: present
|
default: present
|
||||||
|
|
|
@ -15,28 +15,27 @@ options:
|
||||||
hostname:
|
hostname:
|
||||||
description:
|
description:
|
||||||
- The hostname or IP address of the XenServer host or XenServer pool master.
|
- The hostname or IP address of the XenServer host or XenServer pool master.
|
||||||
- If the value is not specified in the task, the value of environment variable E(XENSERVER_HOST) will be used instead.
|
- If the value is not specified in the task, the value of environment variable E(XENSERVER_HOST) is used instead.
|
||||||
type: str
|
type: str
|
||||||
default: localhost
|
default: localhost
|
||||||
aliases: [host, pool]
|
aliases: [host, pool]
|
||||||
username:
|
username:
|
||||||
description:
|
description:
|
||||||
- The username to use for connecting to XenServer.
|
- The username to use for connecting to XenServer.
|
||||||
- If the value is not specified in the task, the value of environment variable E(XENSERVER_USER) will be used instead.
|
- If the value is not specified in the task, the value of environment variable E(XENSERVER_USER) is used instead.
|
||||||
type: str
|
type: str
|
||||||
default: root
|
default: root
|
||||||
aliases: [admin, user]
|
aliases: [admin, user]
|
||||||
password:
|
password:
|
||||||
description:
|
description:
|
||||||
- The password to use for connecting to XenServer.
|
- The password to use for connecting to XenServer.
|
||||||
- If the value is not specified in the task, the value of environment variable E(XENSERVER_PASSWORD) will be used instead.
|
- If the value is not specified in the task, the value of environment variable E(XENSERVER_PASSWORD) is used instead.
|
||||||
type: str
|
type: str
|
||||||
aliases: [pass, pwd]
|
aliases: [pass, pwd]
|
||||||
validate_certs:
|
validate_certs:
|
||||||
description:
|
description:
|
||||||
- Allows connection when SSL certificates are not valid. Set to V(false) when certificates are not trusted.
|
- Allows connection when SSL certificates are not valid. Set to V(false) when certificates are not trusted.
|
||||||
- If the value is not specified in the task, the value of environment variable E(XENSERVER_VALIDATE_CERTS) will be used
|
- If the value is not specified in the task, the value of environment variable E(XENSERVER_VALIDATE_CERTS) is used instead.
|
||||||
instead.
|
|
||||||
type: bool
|
type: bool
|
||||||
default: true
|
default: true
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue