Skip to content

Commit

Permalink
preflight: fix stable repo file creation
Browse files Browse the repository at this point in the history
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 <gabrioux@ibm.com>
(cherry picked from commit 3044ded)
  • Loading branch information
guits committed Feb 17, 2023
1 parent 64172bb commit fb31fce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cephadm-preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,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
Expand Down

0 comments on commit fb31fce

Please sign in to comment.