proxmox ansible bootstrapping
This commit is contained in:
parent
2d1a363a50
commit
bdf3bc6b02
20 changed files with 481 additions and 4 deletions
11
roles/user/tasks/main.yml
Normal file
11
roles/user/tasks/main.yml
Normal 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') }}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue