From 0977fa5fe4b799d202ede0e271f9b664f78148bb Mon Sep 17 00:00:00 2001 From: AnsibleGuy Date: Tue, 25 Jul 2023 18:24:06 +0200 Subject: [PATCH] fixed pipefail usage --- tasks/debian/main.yml | 2 ++ tasks/debian/web.yml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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