Add ansiblehost config, move remote user
This commit is contained in:
parent
db9a8d00e0
commit
8467907660
@ -1,6 +1,5 @@
|
|||||||
[defaults]
|
[defaults]
|
||||||
inventory = inventory
|
inventory = inventory
|
||||||
remote_user = ubuntu
|
|
||||||
private_key_file = ~/.ssh/ansible
|
private_key_file = ~/.ssh/ansible
|
||||||
ssh_extra_args =-o ForwardAgent=yes -o StrictHostKeyChecking=no
|
ssh_extra_args =-o ForwardAgent=yes -o StrictHostKeyChecking=no
|
||||||
host_key_checking = false
|
host_key_checking = false
|
||||||
|
8
ansiblehost-config.cfg
Normal file
8
ansiblehost-config.cfg
Normal 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
|
@ -1,6 +1,8 @@
|
|||||||
#!/usr/bin/ansible-playbook
|
#!/usr/bin/ansible-playbook
|
||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
all:
|
all:
|
||||||
|
vars:
|
||||||
|
ansible_user: ubuntu
|
||||||
children:
|
children:
|
||||||
ansiblehosts:
|
ansiblehosts:
|
||||||
hosts:
|
hosts:
|
||||||
|
Loading…
Reference in New Issue
Block a user