role-caddy/tasks/create_user.yml

15 lines
288 B
YAML
Raw Normal View History

2022-12-10 23:36:54 +00:00
---
- name: "Create Caddy Group"
group:
name: "{{ caddy_group }}"
system: true
state: "present"
- name: "Create Caddy user"
ansible.builtin.user:
name: "{{ caddy_user }}"
comment: "Caddy user"
home: "{{ caddy_home }}"
shell: "/bin/false"
system: true