ansible/inventories/group_vars/all/users.yml

22 lines
915 B
YAML
Raw Normal View History

2026-10-11 22:29:14 +02:00
---
# Admin accounts managed by playbooks/add_user.yml.
#
# login required
# ssh_keys required for state=present. authorized_keys is replaced by
# exactly this list (keys not listed are removed)
# hosts inventory pattern, default "all" (e.g. "lxc", "k3s:viarezo-vm")
# sudo nopasswd (default) | false
# shell only applied when set; new accounts default to /bin/bash
# groups extra groups, added to the existing ones
# state present (default) | absent (removes the account and its home)
#
# Accounts that already exist as system users (uid < 1000) are never touched:
# on forgejo, `un-oeil` is the Forgejo service account, and Forgejo writes its
# authorized_keys.
users:
- login: un-oeil
hosts: "all:!forgejo"
sudo: nopasswd
ssh_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJnyQBvcUTW4YHz5wGBwkT/elDcPsri8Po9MAJCY2P1K un-oeil@archlinux