From 3044ded5965ea9d708b188f60f076b4a277aa56f Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Fri, 17 Feb 2023 20:25:02 +0100 Subject: [PATCH] preflight: fix stable repo file creation The current approach makes the repository file overwritten after each iteration. This commits makes it create a new file for each iteration. Signed-off-by: Guillaume Abrioux --- cephadm-preflight.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cephadm-preflight.yml b/cephadm-preflight.yml index a3085e7..8abed1d 100644 --- a/cephadm-preflight.yml +++ b/cephadm-preflight.yml @@ -69,13 +69,13 @@ - name: configure ceph stable repository yum_repository: - name: ceph_stable + name: "ceph_stable_{{ item }}" description: "{{ _ceph_repo.description }} - {{ item }}" gpgcheck: yes state: present gpgkey: "{{ _ceph_repo.rpm_key }}" baseurl: "{{ _ceph_repo.baseurl }}/{{ item }}" - file: ceph_stable + file: "ceph_stable_{{ item }}" priority: '2' register: result until: result is succeeded