24 lines
837 B
YAML
24 lines
837 B
YAML
- 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
|
|
|
|
- name: Create etc-letsencrypt mount directory for user {{ service_user_name }}
|
|
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
|