File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed
ansible/roles/dnf_repos/tasks Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change 11---
22- name : Remove password and disable Pulp repos
33 ansible.builtin.yum_repository :
4- file : " {{ item.file }}"
5- name : " {{ item.name }}"
6- baseurl : " {{ item.base_url }}"
7- description : " {{ item.name }}"
4+ file : " {{ repo_values.repo_file }}"
5+ name : " {{ repo_name }}"
6+ baseurl : " {{ repo_content_url }}/{{ repo_values.pulp_path }}/{{ repo_values.pulp_timestamp }}"
7+ description : " {{ repo_name }}"
88 enabled : false
9- loop : " {{ dnf_repos_repolist }}"
10-
11- - name : Remove password and disable EPEL repo
12- ansible.builtin.yum_repository :
13- name : epel
14- file : epel
15- description : " {{ dnf_repos_epel_description }}"
16- baseurl : " {{ dnf_repos_epel_baseurl }}"
179 gpgcheck : false
18- enabled : false
10+ loop : " {{ dnf_repos_all | dict2items }}"
11+ loop_control :
12+ label : " {{ repo_name }}[{{ repo_os }}]: {{ repo_values }}"
13+ vars :
14+ repo_os : " {{ ansible_distribution_version if ansible_distribution_version in item.value else ansible_distribution_major_version }}"
15+ repo_values : " {{ item.value[repo_os] }}"
16+ repo_name : " {{ repo_values.repo_name | default(item.key) }}"
17+ repo_content_url : " {{ repo_values.pulp_content_url | default(dnf_repos_pulp_content_url) }}"
1918
2019- name : Get all repo files
2120 ansible.builtin.find :
You can’t perform that action at this time.
0 commit comments