ansible/roles/users/tasks/gopass.yml

30 lines
563 B
YAML
Raw Normal View History

2022-09-17 18:03:17 +02:00
---
- name: create group 'gopass'
group:
name: gopass
gid: 503
- name: create user 'gopass'
user:
name: gopass
uid: 503
group: gopass
home: /var/lib/gopass
password: "!"
- name: make sure gopass owns its home
file:
state: directory
path: /var/lib/gopass
owner: gopass
group: gopass
mode: '2755'
- name: commit gopass's home to lbu
lbu:
include:
- /var/lib/gopass
exclude:
- /var/lib/gopass/.ash_history
2022-10-19 17:58:20 +02:00
when: ansible_distribution == "Alpine" and alpine_mode in ["diskless", "data"]