fixed pipefail usage

This commit is contained in:
AnsibleGuy 2023-07-25 18:24:06 +02:00
parent d3c95f2f93
commit 0977fa5fe4
No known key found for this signature in database
GPG Key ID: 52984C069F5AD3CD
2 changed files with 4 additions and 2 deletions

View File

@ -64,6 +64,8 @@
ansible.builtin.shell: |
set -o pipefail
cat /etc/zm/conf.d/custom_db.conf | grep 'ZM_DB_PASS' | cut -d '=' -f2-
args:
executable: '/bin/bash'
register: zm_db_pwd
when: zm_db_cnf_file.stat.exists
check_mode: false

View File

@ -36,13 +36,13 @@
ansible.builtin.shell: |
set -o pipefail
timedatectl | grep 'Time zone' | cut -d':' -f2 | cut -d' ' -f2
args:
executable: '/bin/bash'
register: controller_tz
delegate_to: localhost
changed_when: false
check_mode: false
become: false
args:
executable: '/bin/bash'
when: ZM_CONFIG.timezone in NONE_VALUES
- name: ZoneMinder | Webserver | Configuring php timezone to locally used one