]> git.phdru.name Git - ansible.git/commit
Fix(named): Fix conditions
authorOleg Broytman <phd@phdru.name>
Tue, 30 Jul 2019 17:18:07 +0000 (20:18 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 30 Jul 2019 17:40:12 +0000 (20:40 +0300)
commita1b08d5935de21449861924a509622a33325fcbf
tree6c440146e321fae490d889b4dd7974098a61fa45
parent351e7f53d928788a0b8b38abaab82faa77a33b8b
Fix(named): Fix conditions

Check 3 conditions: the file is absent
(`grep` reports error but stdout is empty),
the file exists but doesn't contain the line
(`grep` returns error code 1 and stdout is '0'),
the file contains the line (stdout contains the count >= 1).
playbooks/debian/roles/named/tasks/main.yml