diff --git a/tasks/debian/main.yml b/tasks/debian/main.yml index 3a7efcc..5fc4908 100644 --- a/tasks/debian/main.yml +++ b/tasks/debian/main.yml @@ -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 diff --git a/tasks/debian/web.yml b/tasks/debian/web.yml index e607372..5ea3b6a 100644 --- a/tasks/debian/web.yml +++ b/tasks/debian/web.yml @@ -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