proxmox ansible bootstrapping

This commit is contained in:
plasmagoat 2025-06-07 19:41:15 +02:00
parent 2d1a363a50
commit bdf3bc6b02
20 changed files with 481 additions and 4 deletions

11
roles/user/tasks/main.yml Normal file
View file

@ -0,0 +1,11 @@
- name: Create CI user
ansible.builtin.user:
name: "{{ ci_user }}"
shell: /bin/bash
groups: sudo
password: "{{ ci_password | password_hash('sha512') }}"
- name: Add authorized key
ansible.posix.authorized_key:
user: "{{ ci_user }}"
key: "{{ lookup('file', '../files/ci_user.pub') }}"