change ssh config
This commit is contained in:
parent
2f68f6741e
commit
485dfe038e
@ -12,3 +12,11 @@ homelab:
|
|||||||
pve1:
|
pve1:
|
||||||
ansible_host: pve.home.lab.local
|
ansible_host: pve.home.lab.local
|
||||||
ansible_user: root
|
ansible_user: root
|
||||||
|
pve2:
|
||||||
|
ansible_host: pve.home.lab.local
|
||||||
|
ansible_user: root
|
||||||
|
sanbox:
|
||||||
|
hosts:
|
||||||
|
sanbox1:
|
||||||
|
ansible_host: 192.168.0.101
|
||||||
|
ansible_user: ovodianov
|
||||||
|
|||||||
8
ansible/set-ssh.yml
Normal file
8
ansible/set-ssh.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
# if there is only password auth set on a server then run the following
|
||||||
|
# ansible-playbook -i hosts -l <host> set-ssh.yml --diff --ask-pass -K
|
||||||
|
- hosts: homelab
|
||||||
|
become: true
|
||||||
|
roles:
|
||||||
|
- ssh
|
||||||
|
- sudoers
|
||||||
@ -1,6 +0,0 @@
|
|||||||
---
|
|
||||||
- hosts: homelab
|
|
||||||
become: true
|
|
||||||
roles:
|
|
||||||
- ssh
|
|
||||||
- sudoers
|
|
||||||
Loading…
x
Reference in New Issue
Block a user