Add ansiblehost config, move remote user

This commit is contained in:
Salt 2020-05-26 12:46:04 -05:00
parent db9a8d00e0
commit 8467907660
3 changed files with 10 additions and 1 deletions

View File

@ -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

8
ansiblehost-config.cfg Normal file
View File

@ -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

View File

@ -1,6 +1,8 @@
#!/usr/bin/ansible-playbook
# vim:ft=ansible:
all:
vars:
ansible_user: ubuntu
children:
ansiblehosts:
hosts: