| |
@@ -4,6 +4,21 @@
|
| |
with_items:
|
| |
- python2-avocado
|
| |
- rsync # need rsync for Ansible synchronize module
|
| |
+ when: ansible_distribution_major_version != "8"
|
| |
+
|
| |
+ # Avocado installation using pip for RHEL-8.0 Beta
|
| |
+ # which does not package python2 rpms
|
| |
+ - name: Install requirements for RHEL-8.0 Beta
|
| |
+ block:
|
| |
+ - name: Install Avocado using pip
|
| |
+ pip:
|
| |
+ name: avocado-framework
|
| |
+ extra_args: --user
|
| |
+ - name: Install rsync
|
| |
+ package: name=rysnc state=latest
|
| |
+ when:
|
| |
+ - ansible_distribution == "RedHat"
|
| |
+ - ansible_distribution_major_version == "8"
|
| |
|
| |
- name: Make artifacts directory
|
| |
file: path={{ remote_artifacts }} state=directory owner=root mode=755 recurse=yes
|
| |
Avocado is not packaged for RHEL-8.0 Beta as it does not support python2 only rpms. This fix addresses the issue by installing avocado-framework using pip when using the standard-test-avocado role on RHEL-8.0
Signed-off-by: Yash Mankad ymankad@redhat.com