change ssh config

This commit is contained in:
oleg.vodyanov91@gmail.com 2025-05-16 00:53:55 +04:00
parent 2f68f6741e
commit 485dfe038e
3 changed files with 16 additions and 6 deletions

View File

@ -12,3 +12,11 @@ homelab:
pve1:
ansible_host: pve.home.lab.local
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
View 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

View File

@ -1,6 +0,0 @@
---
- hosts: homelab
become: true
roles:
- ssh
- sudoers