24 lines
779 B
YAML
24 lines
779 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 wal directory for user {{ service_user_name }}
|
|
file:
|
|
path: "/var/lib/{{ ansible_hostname }}/data/{{ service_user_name }}/wal"
|
|
state: directory
|
|
owner: "{{ service_user_name }}"
|
|
group: "{{ service_user_name }}"
|
|
mode: 0755
|
|
|
|
- name: Create data directory for user {{ service_user_name }}
|
|
file:
|
|
path: "/var/lib/{{ ansible_hostname }}/data/{{ service_user_name }}/data"
|
|
state: directory
|
|
owner: "{{ service_user_name }}"
|
|
group: "{{ service_user_name }}"
|
|
mode: 0755
|