proxmox: disable password SSH authentication
Apparently it’s not needed for cluster operations.
This commit is contained in:
parent
c585070edc
commit
e5b570ddad
2 changed files with 18 additions and 0 deletions
|
@ -18,6 +18,18 @@
|
|||
src: resolv.conf.j2
|
||||
mode: 0644
|
||||
|
||||
- name: Disable SSH password authentication
|
||||
lineinfile:
|
||||
path: /etc/ssh/sshd_config
|
||||
regexp: '^#?{{ item.key }}'
|
||||
line: '{{ item.key }} {{ item.value }}'
|
||||
loop:
|
||||
- key: PasswordAuthentication
|
||||
value: 'no'
|
||||
- key: PermitRootLogin
|
||||
value: 'prohibit-password'
|
||||
notify: reload sshd
|
||||
|
||||
- include_tasks: network.yml
|
||||
|
||||
- name: Disable enterprise repositories
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue