mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-09-28 20:43:22 -07:00
* Remove 'warn:' that's removed in ansible-core 2.14.
* Install virtualenv when needed.
(cherry picked from commit 24ca69aa05
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
3376442aa2
commit
fbf11668f4
6 changed files with 12 additions and 11 deletions
|
@ -1,7 +1,5 @@
|
|||
- name: "{{ reason }} ('up')"
|
||||
command: "curl -sf http://localhost:8082/hello"
|
||||
args:
|
||||
warn: false
|
||||
when: service_state == 'up'
|
||||
register: curl_result
|
||||
until: not curl_result.failed
|
||||
|
@ -10,8 +8,6 @@
|
|||
|
||||
- name: "{{ reason }} ('down')"
|
||||
command: "curl -sf http://localhost:8082/hello"
|
||||
args:
|
||||
warn: false
|
||||
register: curl_result
|
||||
failed_when: curl_result == 0
|
||||
when: service_state == 'down'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue