proxmox/roles/user/tasks/main.yml

11 lines
313 B
YAML

- 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') }}"