fix: rename roles to use underscores instead of hyphens which was causing the roles not to be found

This commit is contained in:
2026-04-14 15:19:21 -04:00
parent b2379e597e
commit 62f4a3ea73
31 changed files with 31 additions and 31 deletions

View File

@@ -0,0 +1,25 @@
---
- name: "Create a new user {{ username }}"
user:
name: "{{ username }}"
password: "{{ password | password_hash('sha512') }}"
groups:
- sudo
shell: "{{ shell }}"
state: present
append: true
- name: Allow sudo to be used without a password
lineinfile:
path: /etc/sudoers
state: present
regexp: '^%sudo'
line: '%sudo ALL=(ALL) NOPASSWD: ALL'
validate: 'visudo -cf %s'
when: passwordless_sudo | bool
- name: Copy over the public SSH key
authorized_key:
user: "{{ username }}"
state: present
key: "{{ lookup('file', ssh_pubkey_file) }}"