Commit Graph

13 Commits

Author SHA1 Message Date
ansible.cfg: smart fact gathering 2022-09-12 17:18:19 +03:00
ansible.cfg: disable SSH host key checking 2022-09-12 17:14:39 +03:00
ansible.cfg: Use auto discovery of Python interpreter
Uses a built-in table of OSes and Python versions to decide which
Python interpreter to use. This is better than hard coding python3
in every single host's host_vars.

2021-07-07 12:22:00 +03:00
Move remote_user to ansible.cfg
Command line options override config files like ansible.cfg, but
not inventory data or playbook directives. This allows us to over-
ride remote_user with `-u` on the command line to log in as root
before we have set up the provisioning user.

2019-12-08 12:29:36 +02:00
ansible.cfg: Adjust ansible_managed template
2019-01-10 12:50:33 +02:00
Revert "ansible.cfg: Temporary workaround for Ansible > connection issue"
This reverts commit 4f357f336f.

On a hunch I recreated my Ansible virtualenv using Python 2.7 and now
connections work properly again without this. Something seems to have
happened with Python 3 in Ansible >

For reference, Python version was 3.6.3 when it was not working, and
now it is working with Python 2.7.14.
2017-11-01 13:03:44 +02:00
ansible.cfg: Temporary workaround for Ansible > connection issue
Not sure what causes it but I get timeouts when connecting to my hosts
with Ansible > (tested and current 2.5.0-devel). For
some reason switching to paramiko fixes it.
2017-10-30 16:21:35 +02:00
ansible.cfg: Add option to always ask become pass
Saves having to remember to type -K during normal playbook runs.
2017-09-20 12:59:46 +03:00
ansible.cfg: Add option to ask for vault pass
One less thing to remember to type during normal invocations.
2017-09-20 12:43:53 +03:00
ansible.cfg: Add inventory option
As of Ansible 2.4 the ANSIBLE_HOSTS environment variable is deprecated
so we need to specify this some other way.
2017-09-20 12:35:13 +03:00
ansible.cfg: Force handlers to run even if a task fails
We don't want services to be left in a broken state just because
a task fails and handlers that might have been notified fail to
2017-01-28 17:36:32 +02:00
ansible.cfg: Fix SSH pipelining config
The docs aren't very clear on this to be honest, but this option
needs to be under a [ssh_connection] section.

2016-09-07 10:37:25 +03:00
Add ansible.cfg
Pipelining makes ansible run tasks much faster, and as of Ansible
2.0 or 2.1 or so, it now works on older hosts that have requiretty
in their sudo config[0]. Also, disable the creation of those stupid
retry files.

2016-08-22 13:04:13 +03:00