Skip to content

Commit

Permalink
Fix searching for version output in stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Cook authored and bcook254 committed Apr 20, 2024
1 parent 4699af6 commit 26fd0e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion molecule/all/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
chdir: /usr/local/bin
changed_when: false
register: __adguardhome_version
failed_when: __adguardhome_version is not search('0.107.36')
failed_when: __adguardhome_version is not search('0.107.37')

- name: Check if adguardhome.service is started
ansible.builtin.service:
Expand All @@ -23,4 +23,7 @@
enabled: true
check_mode: true
register: service
until: service is succeeded
retries: 3
delay: 10
failed_when: (service is changed) or (service is failed)
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
name: "{{ adguardhome_daemon }}"
state: started
enabled: true
tags: [ molecule-idempotence-notest ]

0 comments on commit 26fd0e3

Please sign in to comment.