2022-10-26 23:22:38 +02:00
|
|
|
- name: Create volume data directory for user {{ service_user_name }}
|
|
|
|
file:
|
|
|
|
path: "/var/lib/{{ ansible_hostname }}/data/{{ service_user_name }}"
|
|
|
|
state: directory
|
|
|
|
owner: "{{ service_user_name }}"
|
|
|
|
group: "{{ service_user_name }}"
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
- name: Create etc-letsencrypt directory for user {{ service_user_name }}
|
|
|
|
file:
|
|
|
|
path: "/var/lib/{{ ansible_hostname }}/data/{{ service_user_name }}/etc-letsencrypt"
|
|
|
|
state: directory
|
|
|
|
owner: "{{ service_user_name }}"
|
|
|
|
group: "{{ service_user_name }}"
|
|
|
|
mode: 0755
|
2022-11-02 20:03:12 +01:00
|
|
|
|
2022-11-02 20:24:38 +01:00
|
|
|
- name: Create etc-letsencrypt mount directory for user {{ service_user_name }}
|
2022-11-02 20:03:12 +01:00
|
|
|
file:
|
|
|
|
path: "/var/lib/{{ ansible_hostname }}/data/{{ service_user_name }}/etc-letsencrypt/_data"
|
|
|
|
state: directory
|
|
|
|
owner: "{{ service_user_name }}"
|
|
|
|
group: "{{ service_user_name }}"
|
|
|
|
mode: 0755
|