Skip to content
This repository was archived by the owner on Apr 15, 2023. It is now read-only.

Commit bd3073c

Browse files
committed
make spacewalk-common-channels idempotent
1 parent 796e6d6 commit bd3073c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

molecule/default/converge.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,6 @@
2222
- {"name": "centos7-updates", "arch": "x86_64"}
2323
uyuni_enable_monitoring: true
2424
uyuni_install_monitoring_formulas: true
25+
# Installation in 2022.02 is currently fragile
26+
# see also: https://github.com/uyuni-project/uyuni/issues/5009
2527
uyuni_release: '2022.01'

tasks/content.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@
5454
command: spacewalk-common-channels -u {{ uyuni_org_login }} -p {{ uyuni_org_password }} -a {{ item.arch }} {{ item.name }}
5555
loop: "{{ uyuni_channels }}"
5656
register: create_result
57-
changed_when: '"already in use" not in create_result.stderr | lower'
57+
changed_when:
58+
- '"exists" not in create_result.stdout | lower'
59+
- '"already in use" not in create_result.stderr | lower'
5860
become: true
5961
when: uyuni_channels | length > 0
6062

0 commit comments

Comments
 (0)