Skip to content

Instantly share code, notes, and snippets.

@Esl1h
Created September 21, 2020 20:21
Show Gist options
  • Save Esl1h/6440c464f557d0e2cc3c8069ace289bf to your computer and use it in GitHub Desktop.
Save Esl1h/6440c464f557d0e2cc3c8069ace289bf to your computer and use it in GitHub Desktop.
Ansible config simple example with mitogen and SSH control session. Configuração do ansible com o mitogen e controle de sessão do SSH
[defaults]
inventory = ./conf/host
local_tmp = ./.tmp
roles_path = ./roles
remote_user = ec2-user
internal_poll_interval = 0.001
interpreter_python = /usr/bin/python
forks = 20
callback_whitelist = profile_tasks
log_path = ./logs/ansible.log
host_key_checking = False
gathering = explicit
deprecation_warnings = False
# mitogen:
strategy_plugins = ./mitogen/ansible_mitogen/plugins/strategy
strategy = mitogen_linear
strategy = linear
[inventory]
[privilege_escalation]
become=True
become_method=sudo
[paramiko_connection]
[ssh_connection]
pipelining = True
ssh_args = -C -4 -F ./conf/ssh.cfg -o ControlMaster=auto -o ControlPersist=30m
control_path = ~/.ssh/ansible-%%r@%%h:%%p
[persistent_connection]
[accelerate]
[selinux]
[colors]
[diff]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment