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
This commit is contained in:
2019-12-08 12:29:36 +02:00
parent 5010e56223
commit cb5fe90499
2 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,6 @@
- name: Configure web servers
hosts: web
remote_user: provisioning
become: yes
roles:
- common