From 84679076607fb52e99721e96e7c75c5ab6c779de Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 26 May 2020 12:46:04 -0500 Subject: [PATCH] Add ansiblehost config, move remote user --- ansible.cfg | 1 - ansiblehost-config.cfg | 8 ++++++++ inventory/hosts.yml | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 ansiblehost-config.cfg diff --git a/ansible.cfg b/ansible.cfg index 0a11b2e..8e9b297 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,6 +1,5 @@ [defaults] inventory = inventory -remote_user = ubuntu private_key_file = ~/.ssh/ansible ssh_extra_args =-o ForwardAgent=yes -o StrictHostKeyChecking=no host_key_checking = false diff --git a/ansiblehost-config.cfg b/ansiblehost-config.cfg new file mode 100644 index 0000000..4a86d60 --- /dev/null +++ b/ansiblehost-config.cfg @@ -0,0 +1,8 @@ +[defaults] +inventory = inventory +private_key_file = ~/.ssh/ansible +ssh_extra_args =-o ForwardAgent=yes -o StrictHostKeyChecking=no +host_key_checking = false +deprecation_warnings = false +pipelining = true +interpreter_python = python3 diff --git a/inventory/hosts.yml b/inventory/hosts.yml index 5bfde7a..73c843f 100644 --- a/inventory/hosts.yml +++ b/inventory/hosts.yml @@ -1,6 +1,8 @@ #!/usr/bin/ansible-playbook # vim:ft=ansible: all: + vars: + ansible_user: ubuntu children: ansiblehosts: hosts: