summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Savineau <dsavinea@redhat.com>2019-02-12 11:23:36 -0500
committerDimitri Savineau <dsavinea@redhat.com>2019-02-12 11:23:36 -0500
commit122c88db7d1cc57dc0409fa7179e7493bf6a31cd (patch)
tree53596bc8472d41b6f6ff4f3d92600c9c079ad465
parent0d1619cf82feadd6705a342e61fbf48450ccc662 (diff)
Fix ansible lint
Change-Id: Id926d1850727ec47eaf6732e44c679a5f0ed8449
-rw-r--r--meta/main.yml2
-rw-r--r--tasks/main.yml3
-rw-r--r--tasks/prepare.yml8
3 files changed, 6 insertions, 7 deletions
diff --git a/meta/main.yml b/meta/main.yml
index 9e0116f..562f616 100644
--- a/meta/main.yml
+++ b/meta/main.yml
@@ -4,7 +4,7 @@ galaxy_info:
description: An Ansible role to run the Red Hat OpenStack certification test suite
company: Red Hat
license: license (Apache)
- min_ansible_version: 2.0
+ min_ansible_version: 2.5
platforms:
- name: EL
versions:
diff --git a/tasks/main.yml b/tasks/main.yml
index 56367d4..5372486 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -11,7 +11,6 @@
become: true
package:
name: rhosp-release
- state: latest
when: rhosp_status.results|length >= 1
- name: Combine all certification tags, tests and programs
@@ -90,6 +89,8 @@
- name: Retrieve certification test results
become: true
shell: rhcert-ci print --format {{ openstack_certification_output_format }} | tail -n +2 | tee {{ openstack_certification_output_filename }}
+ args:
+ creates: '{{ openstack_certification_output_filename }}'
- name: Download output file
become: true
diff --git a/tasks/prepare.yml b/tasks/prepare.yml
index 6e65fe8..f95170f 100644
--- a/tasks/prepare.yml
+++ b/tasks/prepare.yml
@@ -1,11 +1,9 @@
---
- name: Subscribe to rhel-7-server-cert-rpms
become: true
- shell: subscription-manager repos --enable=rhel-7-server-cert-rpms
- register: rhsm
- until: rhsm.rc == 0
- retries: 5
- delay: 10
+ rhsm_repository:
+ name: rhel-7-server-cert-rpms
+ state: enabled
when: openstack_certification_enable_rhsm_repo
- name: Copy an openstack certification repository