31 lines
501 B
YAML
31 lines
501 B
YAML
---
|
|
- name: Create zoneminder user
|
|
user:
|
|
name: zm
|
|
uid: 911
|
|
shell: /bin/false
|
|
become: true
|
|
|
|
- name: Create Zoneminder config directory
|
|
file:
|
|
path: "{{ item }}"
|
|
owner: 911
|
|
group: 911
|
|
mode: '700'
|
|
state: directory
|
|
loop:
|
|
- "{{ zoneminder_config }}"
|
|
become: true
|
|
|
|
- name: Create Zoneminder data directory
|
|
file:
|
|
path: "{{ item }}"
|
|
owner: 911
|
|
group: 911
|
|
mode: '755'
|
|
state: directory
|
|
loop:
|
|
- "{{ zoneminder_data }}"
|
|
become: true
|
|
|