Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Analysis of ansible master file

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

# config file for ansible -- http://ansible.com/

# ==============================================

[defaults]

# some basic default values...

#inventory = /etc/ansible/hosts #This is the default library file location, script, or directory where the host can communicate

#library = /usr/share/my_modules/ #this thing Ansible default search module location

#module_utils = /usr/share/my_module_utils/

#remote_tmp = ~/.ansible/tmp

#local_tmp = ~/.ansible/tmp

#forks = 5 #concurrency of connected hosts

#poll_interval = 15 #For asynchronous tasks in Ansible (see asynchronous operations and polling), this is the setting definition. When the specific poll interval is not defined, how much time to check the status of these tasks? The default value is a compromise of 15 seconds. This time is a callback frequency and task completion callback frequency and turnaround frequency when the task is completed such that:

#sudo_user = root

#ask_sudo_pass = True #ask_pass, used to control whether Ansible playbook asks sudo password before executing sudo. default is no

#ask_pass = True #can be controlled,Ansible script playbook will automatically pop up the password by default. default is no

#transport = smart

#remote_port = 22 #ssh connection port

#module_lang = C#This is the default computer language for communication between modules and systems, the default is 'C' language.

#module_set_locale = False

#gathering = implicit #controls default facts collection (remote system variables). Default is 'implicit', facts are collected every time you play

#gather_subset = all

# gather_timeout = 10

#roles_path = /etc/ansible/roles #roles path refers to additional directories under 'roles/' for playbook search Ansible roles

#host_key_checking = False #Check host key

# change the default callback

#stdout_callback = skippy

# enable additional callbacks

#callback_whitelist = timer, mail

#task_includes_static = True

#handler_includes_static = True

#error_on_missing_handler = True

#sudo_exe = sudo #If sudo is executed in another way on another remote host, the path of the sudo program can be changed with this parameter, using command line tags to fit the standard

#sudo_flags = -H -S -n #When using sudo support, pass tags other than sudo. The default value is "-H", meaning to preserve the original user's environment. In some cases you may need to add or delete tags, most users do not need to modify

#timeout = 10 #SSH timeout

#remote_user = root #Use the default user name of the/usr/bin/ansible-playbook link, if not specified, the user name currently logged in will be used

#log_path = /var/log/ansible.log #Log file path

#module_name = command #ansible command executes the default module

#executable = /bin/sh #Generate a shell interface in sudo. Users only need to modify in some scenarios with/bin/bash or sudo restrictions

#hash_behaviour = replace #specific priority override variables

#private_role_vars = yes

#jinja2_extensions = jinja2.ext.do, jinja2.ext.i18n #Allow Jinja2 extensions to be enabled

#private_key_file = /path/to/file #If you are using a pem key file instead of SSH client or secret ah authentication, you can set the default value here to avoid each reminder to set the key file location

#vault_password_file = /path/to/vault_password_file

#ansible_managed = Ansible managed #This setting tells the user that Ansible has modified a file and that manually written content may have been overwritten.

#display_skipped_hosts = True #Displays the status of any skipped tasks, default is Display

#display_args_to_stdout = False #Displays the status of any skipped tasks, default is Display

#error_on_undefined_vars = False #If the variable name referenced is wrong, ansible will fail at the execution step

#system_warnings = True #Allow disabling system warnings for running ansible related potential problems

#deprecation_warnings = True #Allow disabling of "Not recommended" warnings in ansible-playbook output

# command_warnings = False #Ansible defaults to warnings when shell and command-line modules are simplified by default modules

#action_plugins = /usr/share/ansible/plugins/action #"action" is a piece of code in ansible that activates some event, such as executing a module, a template, etc.; this is a developer-centric feature that allows some underlying modules to be loaded from different places externally

#cache_plugins = /usr/share/ansible/plugins/cache

#callback_plugins = /usr/share/ansible/plugins/callback

#connection_plugins = /usr/share/ansible/plugins/connection

#lookup_plugins = /usr/share/ansible/plugins/lookup

#inventory_plugins = /usr/share/ansible/plugins/inventory

#vars_plugins = /usr/share/ansible/plugins/vars

#filter_plugins = /usr/share/ansible/plugins/filter

#test_plugins = /usr/share/ansible/plugins/test

#strategy_plugins = /usr/share/ansible/plugins/strategy

#strategy = free

#bin_ansible_callbacks = False #Used to control whether the callback plugin is loaded when running/usr/bin/ansible. This module will be used for command-line logging systems, notifications, etc.

#nocows = 1 #default ansible can call some cowsay features on/off: 0/1

#cow_selection = default

#cow_selection = random

#nocolor = 1 #output with color difference, on/off: 0/1

#fact_caching = memory

#retry_files_enabled = False

#retry_files_save_path = ~/.ansible-retry

#no_log = False

#no_target_syslog = False

#allow_world_readable_tmpfiles = False

#var_compression_level = 9

#module_compression = 'ZIP_DEFLATED'

#max_diff_size = 1048576

#merge_multiple_cli_flags = False

# Controls showing custom stats at the end, off by default

#show_custom_stats = True

#inventory_ignore_extensions = ~, .orig, .bak, .ini, .cfg, .retry, .pyc, .pyo

[privilege_escalation]

#become=True

#become_method=sudo

#become_user=root

#become_ask_pass=False

[paramiko_connection]

#record_host_keys=False

#pty=False

[ssh_connection]

#ssh_args = -C -o ControlMaster=auto -o ControlPersist=60s

# control_path_dir = /tmp/.ansible/cp

#control_path_dir = ~/.ansible/cp

# control_path = %(directory)s/%%h-%%r

#control_path =

#pipelining = False

# Control the mechanism for transferring files (old)

# * smart = try sftp and then try scp [default]

# * True = use scp only

# * False = use sftp only

#scp_if_ssh = smart

#transfer_method = smart

#sftp_batch_mode = False

[accelerate]

#accelerate_port = 5099 #port used in rush mode

#accelerate_timeout = 30

#accelerate_connect_timeout = 5.0

# The daemon timeout is measured in minutes. This time is measured

# from the last activity to the accelerate daemon.

#accelerate_daemon_timeout = 30

#accelerate_multi_key = yes

[selinux]

#libvirt_lxc_noseclabel = yes

[colors]

#highlight = white

#verbose = blue

#warn = bright purple

#error = red

#debug = dark gray

#deprecate = purple

#skip = cyan

#unreachable = red

#ok = green

#changed = yellow

#diff_add = green

#diff_remove = red

#diff_lines = cyan

[diff]

# Always print diff when running ( same as always running with -D/--diff )

# always = no

# Set how many context lines to show in diff

# context = 3

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report