ansible-role-dmarc-srg/tasks/user.yml
2023-08-16 20:41:30 +02:00

14 lines
316 B
YAML

---
- name: "User | Create system user"
ansible.builtin.user:
name: "{{ dmarcsrg_user }}"
shell: /bin/false
create_home: false
password_lock: true
system: true
- name: "User | Add www-data to user group"
ansible.builtin.user:
name: www-data
groups: "{{ dmarcsrg }}"
append: true