improve role, especially wrt. passwords

This commit is contained in:
2023-07-14 19:48:55 +02:00
parent 6850abfe30
commit aba0be2e7b
4 changed files with 202 additions and 10 deletions

17
defaults/main.yml Normal file
View File

@@ -0,0 +1,17 @@
# SPDX-FileCopyrightText: 2023 Max Mehl <https://mehl.mx>
#
# SPDX-License-Identifier: Apache-2.0
# Allow user to have no password, so login possible for everyone
allow_no_password: false
# Additional groups user will be added to.
user_groups: []
# Whether to add user to groups in `user_groups` without removing them from
# other groups.
groups_append: true
# Whether to generate an SSH key for the new user
generate_ssh_key: true
# SSH key type
ssh_key_type: ed25519
# Shell
shell: /bin/bash