From 62ac780e733b8f2ee2875802a593abab399ab1e5 Mon Sep 17 00:00:00 2001 From: jgoutin Date: Thu, 3 Oct 2019 16:55:45 +0200 Subject: [PATCH] Ensure CentOS Vault repositories list is up to date --- tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index e61c3b3..7d2fe49 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,5 +1,13 @@ --- +- name: Ensure CentOS Vault repositories list is up to date + package: + name: centos-release + state: latest # noqa 403 + retries: 10 + delay: 1 + when: ansible_distribution == 'CentOS' + - name: Get available kernel versions with YUM command: yum list --enablerepo=C7.* --showduplicates kernel changed_when: false