ansible-edda/playbooks/tasks/services/setup/01-directories.yml

24 lines
520 B
YAML

- name: Create service directory
file:
path: /var/lib/{{ ansible_hostname }}
state: directory
mode: 0755
- name: Create service container directory
file:
path: /var/lib/{{ ansible_hostname }}/containers
state: directory
mode: 0755
- name: Create service data directory
file:
path: /var/lib/{{ ansible_hostname }}/data
state: directory
mode: 0755
- name: Create service home directory
file:
path: /var/lib/{{ ansible_hostname }}/home
state: directory
mode: 0755