2020-10-17 00:21:57 -05:00
|
|
|
[defaults]
|
2022-04-29 16:46:45 -05:00
|
|
|
# I have a large number of machines, which warrants a large forks setting
|
|
|
|
# here.
|
2022-02-15 15:09:21 -06:00
|
|
|
forks = 16
|
2022-04-29 16:46:45 -05:00
|
|
|
# We set gathering to smart here as I'm often executing the site-wide playbook,
|
|
|
|
# which means a ton of redundant time gathering facts that haven't changed
|
|
|
|
# otherwise.
|
|
|
|
gathering = smart
|
|
|
|
# host_key_checking is disabled because nearly 90% of my Ansible plays are in
|
|
|
|
# ephemeral environments and I'm constantly spinning machines up and down.
|
|
|
|
# In theory this is an attack vector that I need to work on a solution for.
|
2022-02-15 15:08:09 -06:00
|
|
|
host_key_checking = false
|
2022-04-29 16:46:45 -05:00
|
|
|
# Explicitly set the python3 interpreter for legacy hosts.
|
2020-10-17 00:21:57 -05:00
|
|
|
interpreter_python = python3
|
2022-04-29 16:46:45 -05:00
|
|
|
# Default inventory is labeled "production", but this entire environment is a
|
|
|
|
# homelab so whatever.
|
2022-03-19 13:05:18 -05:00
|
|
|
inventory = inventories/production
|
2022-04-29 16:46:45 -05:00
|
|
|
# I hate fun
|
|
|
|
nocows = true
|
|
|
|
# Pipelining is a fantastic speedup
|
|
|
|
pipelining = true
|
2020-10-17 00:21:57 -05:00
|
|
|
private_key_file = ~/.ssh/desu
|
2022-04-29 16:46:45 -05:00
|
|
|
# Set explicitly here, but this should be the default.
|
2022-04-27 17:51:30 -05:00
|
|
|
remote_tmp = $HOME/.ansible/tmp
|
2022-04-29 15:18:47 -05:00
|
|
|
remote_user = ansible
|
2022-04-29 16:46:45 -05:00
|
|
|
# This extra roles directory is used for Galaxy roles.
|
2022-02-15 15:08:09 -06:00
|
|
|
roles_path = .roles:roles
|
|
|
|
system_warnings = true
|
2020-10-17 00:21:57 -05:00
|
|
|
|
2022-04-29 16:46:45 -05:00
|
|
|
[diff]
|
|
|
|
always = true
|
|
|
|
|
|
|
|
[inventory]
|
|
|
|
# I have no clue why this isn't the default
|
|
|
|
unparsed_is_failed = true
|
|
|
|
|
2022-04-29 15:18:47 -05:00
|
|
|
[privilege_escalation]
|
2022-04-29 16:46:45 -05:00
|
|
|
# We force an always-become condition because of the myriad of things we need
|
|
|
|
# to do as root.
|
2022-04-29 15:18:47 -05:00
|
|
|
become = true
|
|
|
|
|
2020-10-17 00:21:57 -05:00
|
|
|
[ssh_connection]
|
2022-04-29 16:46:45 -05:00
|
|
|
# The number of retries here is insane because of the volatility of my home
|
|
|
|
# network, where a number of my machines live.
|
2022-03-19 11:36:19 -05:00
|
|
|
retries = 15
|
2022-04-29 16:46:45 -05:00
|
|
|
# These extra args are used for bastioning, where the ephemeral Ansible
|
|
|
|
# controller remotes into a bastion machine to access the rest of the
|
|
|
|
# environment.
|
2022-02-15 13:40:28 -06:00
|
|
|
ssh_extra_args = -o ForwardAgent=yes -o StrictHostKeyChecking=no
|