We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e72752 commit 2fcb1b2Copy full SHA for 2fcb1b2
ansible/roles/dnf_repos/tasks/disable_repos.yml
@@ -10,9 +10,10 @@
10
loop: "{{ dnf_repos_repos | dict2items }}"
11
loop_control:
12
label: "{{ repo_name }}[{{ repo_os }}]: {{ repo_values }}"
13
+ when: repo_values | length > 0
14
vars:
15
repo_os: "{{ ansible_distribution_version if ansible_distribution_version in item.value else ansible_distribution_major_version }}"
- repo_values: "{{ item.value[repo_os] }}"
16
+ repo_values: "{{ item.value.get(repo_os, {}) }}"
17
repo_name: "{{ repo_values.repo_name | default(item.key) }}"
18
repo_content_url: "{{ repo_values.pulp_content_url | default(dnf_repos_pulp_content_url) }}"
19
0 commit comments