remove 'Debian' from task-names
This commit is contained in:
parent
57b3c7e955
commit
a2ae4323ae
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: ZoneMinder | Debian | Webserver | Managing Apache2
|
- name: ZoneMinder | Webserver | Managing Apache2
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
name: ansibleguy.infra_apache
|
name: ansibleguy.infra_apache
|
||||||
vars:
|
vars:
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
apply:
|
apply:
|
||||||
tags: [config, certs]
|
tags: [config, certs]
|
||||||
|
|
||||||
- name: ZoneMinder | Debian | Webserver | Adding apache app-config
|
- name: ZoneMinder | Webserver | Adding apache app-config
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: 'templates/etc/apache2/sites-available/zoneminder.conf.j2'
|
src: 'templates/etc/apache2/sites-available/zoneminder.conf.j2'
|
||||||
dest: "/etc/apache2/sites-available/site_{{ ZM_CONFIG.apache.file }}_app.conf"
|
dest: "/etc/apache2/sites-available/site_{{ ZM_CONFIG.apache.file }}_app.conf"
|
||||||
|
|
@ -25,14 +25,14 @@
|
||||||
group: 'root'
|
group: 'root'
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
- name: ZoneMinder | Debian | Webserver | Configuring php timezone to configured one
|
- name: ZoneMinder | Webserver | Configuring php timezone to configured one
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: "/etc/php/{{ ZM_HC.php_version }}/apache2/php.ini"
|
path: "/etc/php/{{ ZM_HC.php_version }}/apache2/php.ini"
|
||||||
line: "date.timezone = {{ ZM_CONFIG.timezone }}"
|
line: "date.timezone = {{ ZM_CONFIG.timezone }}"
|
||||||
regexp: "^date.timezone"
|
regexp: "^date.timezone"
|
||||||
when: ZM_CONFIG.timezone not in NONE_VALUES
|
when: ZM_CONFIG.timezone not in NONE_VALUES
|
||||||
|
|
||||||
- name: ZoneMinder | Debian | Webserver | Getting local timezone
|
- name: ZoneMinder | Webserver | Getting local timezone
|
||||||
ansible.builtin.shell: |
|
ansible.builtin.shell: |
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
timedatectl | grep 'Time zone' | cut -d':' -f2 | cut -d' ' -f2
|
timedatectl | grep 'Time zone' | cut -d':' -f2 | cut -d' ' -f2
|
||||||
|
|
@ -45,14 +45,14 @@
|
||||||
executable: '/bin/bash'
|
executable: '/bin/bash'
|
||||||
when: ZM_CONFIG.timezone in NONE_VALUES
|
when: ZM_CONFIG.timezone in NONE_VALUES
|
||||||
|
|
||||||
- name: ZoneMinder | Debian | Webserver | Configuring php timezone to locally used one
|
- name: ZoneMinder | Webserver | Configuring php timezone to locally used one
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: "/etc/php/{{ ZM_HC.php_version }}/apache2/php.ini"
|
path: "/etc/php/{{ ZM_HC.php_version }}/apache2/php.ini"
|
||||||
line: "date.timezone = {{ controller_tz.stdout }}"
|
line: "date.timezone = {{ controller_tz.stdout }}"
|
||||||
regexp: "^date.timezone"
|
regexp: "^date.timezone"
|
||||||
when: ZM_CONFIG.timezone in NONE_VALUES
|
when: ZM_CONFIG.timezone in NONE_VALUES
|
||||||
|
|
||||||
- name: ZoneMinder | Debian | Webserver | Restarting webserver
|
- name: ZoneMinder | Webserver | Restarting webserver
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: 'apache2.service'
|
name: 'apache2.service'
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue