ansible-role-k3s/molecule/default/prepare-rootless.yml

24 lines
502 B
YAML
Raw Permalink Normal View History

---
- 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
2020-09-26 16:50:03 +02:00
mode: 0700