tests: ensure ca-certificates is up to date

otherwise the `rpm_key` module fails because it can't verify the
certificate.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/6942/head
Guillaume Abrioux 2021-10-02 00:41:03 +02:00
parent a890d6a043
commit c5a8343417
1 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,7 @@
become: yes become: yes
tasks: tasks:
- name: check if it is Atomic host - name: check if it is Atomic host
stat: path=/run/ostree-booted stat: path=/run/ostree-booted
register: stat_ostree register: stat_ostree
@ -23,6 +24,14 @@
until: result is succeeded until: result is succeeded
when: not is_atomic | bool when: not is_atomic | bool
- name: ensure ca-certificate is latest version
package:
name: ca-certificates
state: latest
register: result
until: result is succeeded
when: not is_atomic | bool
- name: centos based systems - configure repos - name: centos based systems - configure repos
block: block:
- name: disable fastest mirror detection - name: disable fastest mirror detection