From 667d56b712c09a19257078540732f95d16676451 Mon Sep 17 00:00:00 2001 From: AnsibleGuy Date: Sat, 25 Mar 2023 22:06:49 +0100 Subject: [PATCH] lint fixes --- tasks/debian/db.yml | 1 + tasks/debian/main.yml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks/debian/db.yml b/tasks/debian/db.yml index 4189afd..1cb59e5 100644 --- a/tasks/debian/db.yml +++ b/tasks/debian/db.yml @@ -42,4 +42,5 @@ - name: ZoneMinder | Debian | DB | Running db-update script ansible.builtin.command: "{{ ZM_CONFIG.path.bin }}/zmupdate.pl" + changed_when: false when: zm_db_empty['query_result'][0][0]['count(*)'] | int == 0 diff --git a/tasks/debian/main.yml b/tasks/debian/main.yml index 728af35..a054e44 100644 --- a/tasks/debian/main.yml +++ b/tasks/debian/main.yml @@ -61,8 +61,9 @@ not zm_db_cnf_file.stat.exists - name: ZoneMinder | Debian | Pulling existing database password - ansible.builtin.shell: - cmd: "cat /etc/zm/conf.d/custom_db.conf | grep 'ZM_DB_PASS' | cut -d '=' -f2-" + ansible.builtin.shell: | + set -o pipefail + cat /etc/zm/conf.d/custom_db.conf | grep 'ZM_DB_PASS' | cut -d '=' -f2- register: zm_db_pwd when: zm_db_cnf_file.stat.exists check_mode: false