homeserver/roles/PyratLabs.k3s/molecule/default/prepare-rootless.yml
mg 3cc377c1a7 Rolle aktualisiert: k3s (#455)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: #455
2023-02-17 12:00:24 +01:00

23 lines
502 B
YAML

---
- name: Prepare
hosts: node1
become: true
tasks:
- name: Ensure a user group exists
ansible.builtin.group:
name: user
state: present
- name: Ensure a normal user exists
ansible.builtin.user:
name: k3suser
group: user
state: present
- name: Ensure a normal user has bin directory
ansible.builtin.file:
path: /home/k3suser/bin
state: directory
owner: k3suser
group: user
mode: 0700