14411dcb6a
This change replaces all of the roles references in our various files with the
new role name. This is being done because Ansible no longer allows hyphens in
role names.
TODO: (gchamoul) Remove healthcheck-service-status once this patch is
merged. Tripleo Jobs are RED due to THT trying to execute this
validation as inflight one but it has been renamed healthcheck_service_status.
Co-Authored-by: Gael Chamoulaud <gchamoul@redhat.com>
Change-Id: I19bb587ece403f86ddd0bbe174c282326500cfd3
(cherry picked from commit ceb0f75182
)
17 lines
511 B
YAML
17 lines
511 B
YAML
---
|
|
- name: Get available updates for packages
|
|
check_package_update:
|
|
package: "{{ item }}"
|
|
pkg_mgr: "{{ ansible_pkg_mgr }}"
|
|
with_items: "{{ packages }}"
|
|
register: updates
|
|
|
|
- name: Check if current version is the latest one
|
|
fail:
|
|
msg: >-
|
|
A newer version of the {{ item.name }} package is
|
|
available: {{ item.new_version }}-{{ item.new_release }}
|
|
(currently {{ item.current_version }}-{{ item.current_release }})
|
|
with_items: "{{ updates.results }}"
|
|
when: item.new_version
|