2022-12-29 22:45:17 +01:00
|
|
|
---
|
|
|
|
- name: Create zoneminder user
|
|
|
|
user:
|
|
|
|
name: zm
|
2023-04-14 14:01:17 +02:00
|
|
|
uid: '911'
|
2022-12-29 22:45:17 +01:00
|
|
|
shell: /bin/false
|
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: Create Zoneminder config directory
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
2023-04-14 14:01:17 +02:00
|
|
|
owner: '911'
|
|
|
|
group: '911'
|
|
|
|
mode: '755'
|
2022-12-29 22:45:17 +01:00
|
|
|
state: directory
|
|
|
|
loop:
|
|
|
|
- "{{ zoneminder_config }}"
|
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: Create Zoneminder data directory
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
2023-04-14 14:01:17 +02:00
|
|
|
owner: '911'
|
|
|
|
group: '911'
|
2022-12-29 22:45:17 +01:00
|
|
|
mode: '755'
|
|
|
|
state: directory
|
|
|
|
loop:
|
|
|
|
- "{{ zoneminder_data }}"
|
|
|
|
become: true
|
|
|
|
|