kayobe/ansible/roles/dnf/tasks/main.yml
Erik Berg 8b5168828a
dnf: improve task output readability
It's more informative to describe the tasks we are skipping by
adding a name section to the include_tasks. Otherwise it just
shows;

 TASK [dnf : include_tasks] *
 skipping: [controller-1]

The other include_tasks doesn't have a name section or a when clause
so switching to import_tasks.

Change-Id: Ie8d34a45aa4ebd0e2ea635208970acf18741aee5
2023-01-16 10:05:48 +01:00

16 lines
361 B
YAML

---
- name: Ensure dnf.conf configuration exists
ini_file:
path: /etc/dnf/dnf.conf
section: "main"
option: "{{ item.key }}"
value: "{{ item.value }}"
loop: "{{ query('dict', dnf_config) }}"
become: true
- name: Configure local mirror
include_tasks: local-mirror.yml
when: dnf_use_local_mirror | bool
- import_tasks: custom-repo.yml