Skip to content

Commit

Permalink
Workaround Ansible wait_for mmap() bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bviktor committed Nov 17, 2023
1 parent 4837ef8 commit 0597060
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ rules:
comments:
min-spaces-from-content: 1
require-starting-space: false
comments-indentation: disable
line-length: disable
10 changes: 7 additions & 3 deletions tests/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@
register: installed_curl
when: installed_curl is not defined and ansible_os_family != 'RedHat'

# TODO https://github.com/ansible/ansible/issues/79683
- name: Wait for Tomcat to start up
wait_for:
path: "{{ eff_tomcat_home }}/logs/catalina.out"
search_regex: 'Server startup in'
# wait_for:
# path: "{{ eff_tomcat_home }}/logs/catalina.out"
# search_regex: 'Server startup in'
shell:
cmd: "while true; do grep 'Server startup in' {{ eff_tomcat_home }}/logs/catalina.out && break; sleep 1; done"
changed_when: false

- name: Check Tomcat landing page # noqa command-instead-of-module
shell:
Expand Down

0 comments on commit 0597060

Please sign in to comment.