lint fixes
This commit is contained in:
parent
7f93e3bd43
commit
667d56b712
|
|
@ -42,4 +42,5 @@
|
||||||
|
|
||||||
- name: ZoneMinder | Debian | DB | Running db-update script
|
- name: ZoneMinder | Debian | DB | Running db-update script
|
||||||
ansible.builtin.command: "{{ ZM_CONFIG.path.bin }}/zmupdate.pl"
|
ansible.builtin.command: "{{ ZM_CONFIG.path.bin }}/zmupdate.pl"
|
||||||
|
changed_when: false
|
||||||
when: zm_db_empty['query_result'][0][0]['count(*)'] | int == 0
|
when: zm_db_empty['query_result'][0][0]['count(*)'] | int == 0
|
||||||
|
|
|
||||||
|
|
@ -61,8 +61,9 @@
|
||||||
not zm_db_cnf_file.stat.exists
|
not zm_db_cnf_file.stat.exists
|
||||||
|
|
||||||
- name: ZoneMinder | Debian | Pulling existing database password
|
- name: ZoneMinder | Debian | Pulling existing database password
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell: |
|
||||||
cmd: "cat /etc/zm/conf.d/custom_db.conf | grep 'ZM_DB_PASS' | cut -d '=' -f2-"
|
set -o pipefail
|
||||||
|
cat /etc/zm/conf.d/custom_db.conf | grep 'ZM_DB_PASS' | cut -d '=' -f2-
|
||||||
register: zm_db_pwd
|
register: zm_db_pwd
|
||||||
when: zm_db_cnf_file.stat.exists
|
when: zm_db_cnf_file.stat.exists
|
||||||
check_mode: false
|
check_mode: false
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue