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 <[email protected]>
  • Loading branch information
guits committed Feb 17, 2023
1 parent 4cc3e8b commit 3044ded
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 @@ -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
Expand Down

0 comments on commit 3044ded

Please sign in to comment.