ansible-personal/ansible.cfg
Alan Orth cb5fe90499
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.

See: https://github.com/ansible/ansible/issues/7841#issuecomment-245716271
2019-12-08 12:29:36 +02:00

21 lines
385 B
INI

[defaults]
retry_files_enabled=False
force_handlers=True
inventory=hosts
# instead of using --ask-vault-pass
ask_vault_pass=True
remote_user = provisioning
ansible_managed = This file is managed by Ansible.%n
template: {file}
date: %Y-%m-%d %H:%M:%S
user: {uid}
host: {host}
[privilege_escalation]
# instead of using -K
become_ask_pass=True
[ssh_connection]
pipelining=True