zoneminder: Convert modules to use FQCN
This commit is contained in:
parent
9f31fcfd52
commit
9bb64eda08
1 changed files with 14 additions and 14 deletions
|
@ -1,21 +1,21 @@
|
|||
---
|
||||
- name: fix selinux contexts from cache directory
|
||||
sefcontext:
|
||||
community.general.sefcontext:
|
||||
path: "/var/cache/zoneminder(/.*)?"
|
||||
setype: httpd_cache_t
|
||||
|
||||
- name: install packages
|
||||
package:
|
||||
ansible.builtin.package:
|
||||
name: zoneminder-httpd
|
||||
state: installed
|
||||
|
||||
- name: fix selinux contexts from data directory
|
||||
sefcontext:
|
||||
community.general.sefcontext:
|
||||
path: "/export/zoneminder(/.*)?"
|
||||
setype: zoneminder_var_lib_t
|
||||
|
||||
- name: create data directory
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: /export/zoneminder
|
||||
state: directory
|
||||
mode: 0750
|
||||
|
@ -24,7 +24,7 @@
|
|||
setype: _default
|
||||
|
||||
- name: link data directory
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
dest: /srv/zoneminder
|
||||
src: /export/zoneminder
|
||||
state: link
|
||||
|
@ -33,7 +33,7 @@
|
|||
follow: false
|
||||
|
||||
- name: create config
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
dest: /etc/zm/conf.d/local.conf
|
||||
src: zm.conf
|
||||
mode: 0640
|
||||
|
@ -42,7 +42,7 @@
|
|||
notify: restart zoneminder
|
||||
|
||||
- name: remove mariadb depency from unit file
|
||||
shell:
|
||||
ansible.builtin.shell:
|
||||
cmd: >-
|
||||
sed -e 's/mariadb\.service//' /lib/systemd/system/zoneminder.service
|
||||
> /etc/systemd/system/zoneminder.service
|
||||
|
@ -52,7 +52,7 @@
|
|||
when: zm_mysql_host != "localhost"
|
||||
|
||||
- name: allow zoneminder to read host private key
|
||||
user:
|
||||
ansible.builtin.user:
|
||||
name: apache
|
||||
groups: hostkey
|
||||
append: true
|
||||
|
@ -60,7 +60,7 @@
|
|||
when: zm_mysql_host != "localhost"
|
||||
|
||||
- name: loosen selinux settings
|
||||
seboolean:
|
||||
ansible.posix.seboolean:
|
||||
name: "{{ item }}"
|
||||
state: true
|
||||
persistent: true
|
||||
|
@ -70,7 +70,7 @@
|
|||
|
||||
# selinux doesn't allow create this
|
||||
- name: create stub web log
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
dest: /var/log/zoneminder/web_php.log
|
||||
state: touch
|
||||
mode: 0640
|
||||
|
@ -80,7 +80,7 @@
|
|||
modification_time: preserve
|
||||
|
||||
- name: link apache config
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
dest: /etc/httpd/conf.local.d/zm.conf
|
||||
src: /etc/zm/www/zoneminder.httpd.conf
|
||||
state: link
|
||||
|
@ -89,7 +89,7 @@
|
|||
notify: restart apache
|
||||
|
||||
- name: link apache php config
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
dest: /etc/httpd/conf.local.d/php.conf
|
||||
src: /etc/httpd/conf.d/php.conf
|
||||
state: link
|
||||
|
@ -98,7 +98,7 @@
|
|||
notify: restart apache
|
||||
|
||||
- name: configure zoneminder timezone
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/php.d/timezone.ini
|
||||
content: "date.timezone=UTC\n"
|
||||
mode: 0644
|
||||
|
@ -107,7 +107,7 @@
|
|||
notify: restart apache
|
||||
|
||||
- name: enable service
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: zoneminder
|
||||
state: started
|
||||
enabled: true
|
||||
|
|
Loading…
Add table
Reference in a new issue