ansible - Keyword playbook in

play

any_errors_fatal: Forced any pending tasks on the host for any errors propagated to all the hosts and the end of the play.
become: A Boolean value that controls whether or not applicable at the time of task execution with elevated privileges.
become_flags: When becomes True, the flag to be passed to privilege escalation procedures.
become_method: suitable for the kind of privilege escalation method (such as sudo or su)
become_user:
check_mode: Boolean control task to check whether the model
the Collections
Connection
Debugger: Debugger, enable debugging tasks according to the state task results
diff
Environment: conversion is not environment dictionary variable, provided in the implementation of the task. This does not affect Ansible itself and its configuration, it is just as responsible for the implementation of the code set variable task.
fact_path: collect facts path options for the plug-in settings fact gather_facts control.
force_handlers: Even if the failure During playback, will force the notification handler execution host
gather_facts
gather_subset: allows you to pass options to a subset of the collection of facts gather_facts control plug-ins.
gather_timeout: Allows you to set the timeout to collect facts gather_facts controlled by the plug-in
handlers: processor, has to be regarded as part of the task handler, that's only done when the normal notice after the completion of each task section.
hosts: hosts or host groups list
ignore_errors: Boolean value that allows you to ignore and continue the mission fails. It does not affect a connection error.
ignore_unreachable: Boolean value that allows you to ignore unreachable host and continue to play
max_fail_percentage: can be used to abort a run after a given percentage of the current batch host failure.
module_defaults: default parameter values for the specified module.
name:
no_log: Boolean value control information leakage.
order: control sequencing host for performing the playback. Possible values are inventory (default), sorted, reverse_sorted, reverse_inventory and shuffle.
port: the default port for covering use.
post_tasks: part of the task list of tasks to be performed.
pre_tasks: a list of tasks performed prior roles.
remote_user: User login goal by connecting the plug.
the Roles
run_once: Boolean value, it will bypass the main loop, forced to try to perform the task on the first available host, and then any result and the fact that the activities apply to all hosts in the same batch.
serial: Batch Execution
strategy: Allows you to select the plug connection for playback.
tags: labels applied to a task or a task, the task allows the selection of a subset of the command line.
tasks: the main list of tasks to perform in the game, they run before and after the role post_tasks.
vars: Variable
vars_files: variable file
vars_prompt: interactive input variables

Role

any_errors_fatal: Forced any pending tasks on the host for any errors propagated to all the hosts and the end of the play.
become: Boolean value that controls whether to use privilege escalation in the task execution.
become_flags: When changes to True, elevated privileges to be passed to sign a bunch of programs.
become_method: What kind of privilege escalation method (such as sudo or su) use.
become_user: After you upgrade your usage rights "to become" users. Remote / logged-on user must have become the user's permission.
check_mode: A Boolean value that controls whether task execution to "check" mode
the Collections
Connection: Allows you to change the plug for connecting tasks performed on the target.
debugger: Enable debugging tasks according to the state task results
delegate_facts: Boolean value that allows you to apply to entrust the fact that host instead inventory_hostname.
delegate_to: Host perform tasks instead of goals (inventory_hostname). Delegated connection variables from a host will be used for this task.
diff: Returns the job switching to 'diff' information or not.
environment: an environment variable is converted to the dictionary, providing for the task at execution time. This does not affect Ansible itself and its configuration, it is just as responsible for the implementation of the code set variable task.
ignore_errors: Boolean value that allows you to ignore the task fails and continues playing. It does not affect a connection error.
ignore_unreachable: Boolean value that allows you to ignore unreachable host and continues to play. This error does not affect other tasks
module_defaults: the default parameter values for the specified module.
name: Boolean value control information leakage.
no_log:
Port: port used to override the default used.
REMOTE_USER
run_once
Tags
VARS
the when

Task

action: operational tasks to be performed
any_errors_fatal: Forced any pending tasks on the host for any errors propagated to all the hosts and the end of the play
args: The second method to pass parameters to the task.
async: Asynchronous
become: whether privilege escalation while on duty
become_flags
become_method: suitable for the kind of privilege escalation method
become_user: change user permissions to upgrade
changed_when
check_mode
the Collections
Connection: define the connection plug
debugger: Debugger
delay: delay in seconds
delegate_facts : Boolean value that allows you to apply to entrust the fact that host instead inventory_hostname.
delegate_to: commissioned
diff:
Environment: Environment configuration information
failed_when: task failed conditional expression
ignore_errors:
ignore_unreachable: Boolean value that allows you to override an unreachable host and continues to play.
local_action:
Loop: cycle value of the task list
loop_control
module_defaults: the default parameter values for the specified module.
name
Boolean value that controls information leakage: no_log
notify: When the task returns to the state changed = True notification handler
poll: polling
port: the port connecting node
register: return value register, or the state of receiving task
remote_user: user connection node
retries: retries, and mating until applicable
run_once: running a host in a batch, the results of the synchronization to the other hosts
tags: labels applied to a task or a task, the task allows to select a subset of the command line
until: ... until the end of the cycle
vars: variable
when: conditional expression
with_ <lookup_plugin>

Guess you like

Origin www.cnblogs.com/yangmingxianshen/p/12656445.html