36 lines
584 B
YAML
36 lines
584 B
YAML
- name: install python3
|
|
apk:
|
|
name: python3
|
|
|
|
- name: create group 'rilla'
|
|
group:
|
|
name: rilla
|
|
gid: 1000
|
|
|
|
- name: create user 'rilla'
|
|
user:
|
|
name: rilla
|
|
uid: 1000
|
|
group: rilla
|
|
home: /home/rilla
|
|
groups:
|
|
- rilla
|
|
- wheel
|
|
|
|
- name: set rilla's authorized key
|
|
authorized_key:
|
|
user: rilla
|
|
key: '{{ item }}'
|
|
path: /home/rilla/.ssh/authorized_keys
|
|
with_file:
|
|
- public_keys/yubikey
|
|
|
|
- name: commit ssh public keys with lbu
|
|
lbu:
|
|
include:
|
|
- /home/rilla/.ssh/authorized_keys
|
|
|
|
- name: lbu commit
|
|
lbu:
|
|
commit: true
|