mirror of
https://github.com/roles-ansible/ansible_collection_wireguard.git
synced 2024-10-27 22:47:42 +01:00
17 lines
424 B
YAML
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'
|