
Options are configured via the 'yum_config' variable. Change-Id: Iaf46dbf22e0ad2b9e43926e899ce454d19662cc3 Story: 2004935 Task: 29327
17 lines
418 B
YAML
17 lines
418 B
YAML
---
|
|
- block:
|
|
- name: Ensure yum.conf configuration exists
|
|
ini_file:
|
|
path: /etc/yum.conf
|
|
section: "main"
|
|
option: "{{ item.key }}"
|
|
value: "{{ item.value }}"
|
|
loop: "{{ query('dict', yum_config) }}"
|
|
become: true
|
|
|
|
- include_tasks: local-mirror.yml
|
|
when: yum_use_local_mirror | bool
|
|
|
|
- include_tasks: custom_repo.yml
|
|
when: ansible_os_family == 'RedHat'
|