Fix SSH config;Housekeeping

This commit is contained in:
Danny Bessems 2021-06-14 16:59:20 +02:00
parent 82b8eeca4f
commit b6656c3d9c
2 changed files with 3 additions and 3 deletions

View File

@ -16,8 +16,8 @@
line: "{{ item.line }}" line: "{{ item.line }}"
state: "{{ item.state }}" state: "{{ item.state }}"
loop: loop:
- { regex: '$#PasswordAuthentication', line: 'PasswordAuthentication no', state: ''} - { regex: '$#PasswordAuthentication', line: 'PasswordAuthentication no', state: present}
- { regex: '', line: 'PasswordAuthentication yes', state: absent} - { regex: ~, line: 'PasswordAuthentication yes', state: absent}
- name: Delete 'ubuntu' user - name: Delete 'ubuntu' user
ansible.builtin.user: ansible.builtin.user:
name: ubuntu name: ubuntu

View File

@ -38,7 +38,7 @@ PropertyCategories:
Configurations: '*' Configurations: '*'
UserConfigurable: true UserConfigurable: true
- Key: guestinfo.rootsshkey - Key: guestinfo.rootsshkey
Type: string(1..) Type: password(1..)
Label: Local root SSH public key* Label: Local root SSH public key*
Description: This line should start with 'ssh-rsa AAAAB3N' Description: This line should start with 'ssh-rsa AAAAB3N'
DefaultValue: '' DefaultValue: ''