lint fixes

This commit is contained in:
AnsibleGuy 2023-03-25 22:06:49 +01:00
parent 7f93e3bd43
commit 667d56b712
No known key found for this signature in database
GPG Key ID: 52984C069F5AD3CD
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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