mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-12-01 13:13:57 +01:00
23 lines
435 B
YAML
23 lines
435 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
|