feat: set feature flags to opt in or out of tasks

users/tasks/main.yml functions as a thin dispatcher with logical steps imported from their own files gated by a variable
This commit is contained in:
2026-08-17 14:27:32 +02:00
parent 6e4bd8eb92
commit 0191f60e8b
4 changed files with 52 additions and 39 deletions
+24
View File
@@ -0,0 +1,24 @@
---
- name: Create primary sysadmin user
ansible.builtin.user:
name: "{{ sysadmin_user }}"
groups: sudo
append: yes
shell: /bin/bash
create_home: yes
become: true
- name: Add SSH public key for sysadmin
ansible.posix.authorized_key:
user: "{{ sysadmin_user }}"
state: present
key: "{{ sysadmin_public_ssh_key }}"
become: true
- name: Allow passwordless sudo for sudo group
ansible.builtin.copy:
dest: /etc/sudoers.d/sudo-nopasswd
content: "%sudo ALL=(ALL) NOPASSWD: ALL"
mode: "0440"
validate: /usr/sbin/visudo -cf %s
become: true