生产环境中jenkins主机ansible配置如下

Posted effortsing

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了生产环境中jenkins主机ansible配置如下相关的知识,希望对你有一定的参考价值。

生产环境中jenkins主机ansible配置如下:

[defaults]

hostfile       = ./hosts

library        = /usr/share/ansible

remote_tmp     = $HOME/.ansible/tmp

pattern        = *

transport      = smart

remote_port    = 22

log_path = /home/jenkins/ansible/ansible.log

pipelining = True

module_lang    = C

gathering = implicit

host_key_checking = False

sudo_exe = sudo

timeout = 10

ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}

action_plugins     = /usr/share/ansible_plugins/action_plugins

callback_plugins   = /usr/share/ansible_plugins/callback_plugins

connection_plugins = /usr/share/ansible_plugins/connection_plugins

lookup_plugins     = /usr/share/ansible_plugins/lookup_plugins

vars_plugins       = /usr/share/ansible_plugins/vars_plugins

filter_plugins     = /usr/share/ansible_plugins/filter_plugins

[paramiko_connection]

[ssh_connection]

[accelerate]

accelerate_port = 5099

accelerate_timeout = 30

accelerate_connect_timeout = 5.0

accelerate_daemon_timeout = 30

  

以上是关于生产环境中jenkins主机ansible配置如下的主要内容,如果未能解决你的问题,请参考以下文章

CI/CD之jenkins结合ansible部署apache

CI/CD之jenkins结合ansible部署apache

Jenkins+Ansible+Gitlab自动化部署三剑客--Jenkins ansible集成

Ansible基础理论及安装

jenkins集成pipeline,ansible流程

4Ansible配置和使用