diff --git a/ansible/hosts b/ansible/hosts index 29e935e..7babeae 100644 --- a/ansible/hosts +++ b/ansible/hosts @@ -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 diff --git a/ansible/set-ssh.yml b/ansible/set-ssh.yml new file mode 100644 index 0000000..22de2c7 --- /dev/null +++ b/ansible/set-ssh.yml @@ -0,0 +1,8 @@ +--- +# if there is only password auth set on a server then run the following +# ansible-playbook -i hosts -l set-ssh.yml --diff --ask-pass -K +- hosts: homelab + become: true + roles: + - ssh + - sudoers diff --git a/ansible/test.yml b/ansible/test.yml deleted file mode 100644 index d080273..0000000 --- a/ansible/test.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -- hosts: homelab - become: true - roles: - - ssh - - sudoers