Proxmox servers still need root shell access.

This commit is contained in:
Hyperling 2021-02-20 10:26:08 -06:00
parent 6c39ed1e1f
commit 1229ffe238

View File

@ -40,6 +40,7 @@
create: no
backup: yes
loop:
- { "key": '^[\#]?PermitRootLogin', "value": 'PermitRootLogin no'}
- { "key": '^[\#]?AllowTcpForwarding', "value": 'AllowTcpForwarding no'}
- { "key": '^[\#]?ClientAliveCountMax', "value": 'ClientAliveCountMax 2'}
- { "key": '^[\#]?Compression', "value": 'Compression no'}
@ -60,8 +61,8 @@
create: no
backup: yes
loop:
- { "key": '^[\#]?PermitRootLogin', "value": 'PermitRootLogin no'}
when: {{ not(ansible_kernel | select ("pve")) }}
- { "key": '^[\#]?PermitRootLogin', "value": 'PermitRootLogin yes'}
when: "'pve' in ansible_kernel"
- name: General | Software | Services | Enable SSHD
service: