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