mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-11-29 12:55:51 +01:00
24 lines
502 B
YAML
24 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
|