fixed pipefail usage
This commit is contained in:
parent
d3c95f2f93
commit
0977fa5fe4
|
|
@ -64,6 +64,8 @@
|
||||||
ansible.builtin.shell: |
|
ansible.builtin.shell: |
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
cat /etc/zm/conf.d/custom_db.conf | grep 'ZM_DB_PASS' | cut -d '=' -f2-
|
cat /etc/zm/conf.d/custom_db.conf | grep 'ZM_DB_PASS' | cut -d '=' -f2-
|
||||||
|
args:
|
||||||
|
executable: '/bin/bash'
|
||||||
register: zm_db_pwd
|
register: zm_db_pwd
|
||||||
when: zm_db_cnf_file.stat.exists
|
when: zm_db_cnf_file.stat.exists
|
||||||
check_mode: false
|
check_mode: false
|
||||||
|
|
|
||||||
|
|
@ -36,13 +36,13 @@
|
||||||
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
|
||||||
|
args:
|
||||||
|
executable: '/bin/bash'
|
||||||
register: controller_tz
|
register: controller_tz
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
changed_when: false
|
changed_when: false
|
||||||
check_mode: false
|
check_mode: false
|
||||||
become: false
|
become: false
|
||||||
args:
|
|
||||||
executable: '/bin/bash'
|
|
||||||
when: ZM_CONFIG.timezone in NONE_VALUES
|
when: ZM_CONFIG.timezone in NONE_VALUES
|
||||||
|
|
||||||
- name: ZoneMinder | Webserver | Configuring php timezone to locally used one
|
- name: ZoneMinder | Webserver | Configuring php timezone to locally used one
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue