CI: Remove 'warn:' that's removed in ansible-core 2.14 (#4434)

* Remove 'warn:' that's removed in ansible-core 2.14.

* Install virtualenv when needed.
This commit is contained in:
Felix Fontein 2022-04-01 22:53:05 +02:00 committed by GitHub
commit 24ca69aa05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 11 deletions

View file

@ -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'

View file

@ -43,6 +43,18 @@
src: httpd_echo.py
dest: "{{ process_file }}"
- name: Install virtualenv
package:
name: virtualenv
state: present
when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '8'
- name: Install virtualenv
package:
name: python-virtualenv
state: present
when: ansible_os_family == 'Archlinux'
- name: install dependencies
pip:
name: "{{ item }}"