1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_collection_wireguard.git synced 2024-10-27 22:47:42 +01:00
ansible_collection_wireguard/roles/wireguardui/tasks/user.yml
2024-10-14 01:34:07 +02:00

17 lines
424 B
YAML

---
- name: Create group for wireguardui
become: true
ansible.builtin.group:
name: "{{ wireguardui__group }}"
state: present
- name: Add user for wireguardui with disabled password
become: true
ansible.builtin.user:
name: "{{ wireguardui__owner }}"
home: "{{ wireguardui__home }}"
group: "{{ wireguardui__group }}"
password: '!'
create_home: true
system: true
shell: '/bin/bash'