ansible/roles/basic/tasks/main.yml

36 lines
584 B
YAML
Raw Normal View History

2022-08-30 11:03:36 +02:00
- 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