ansible-role-k3s/molecule/default/prepare-rootless.yml
2020-09-26 15:51:41 +01:00

24 lines
454 B
YAML

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