This commit is contained in:
2026-02-21 01:18:50 +01:00
parent 5e041fed7c
commit 7fa9e07ffa
6 changed files with 162 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
- name: Setup DNF proxy
become: "{{ 'no' if inventory_hostname == 'nas.home.lan' else 'yes' }}"
block:
- name: Configure global DNF proxy
ansible.builtin.lineinfile:
path: /etc/dnf/dnf.conf
regexp: '^proxy='
line: 'proxy=http://{{ dnf_proxy_host }}:{{ dnf_proxy_port }}'
insertafter: '^\[main\]'
state: present
backup: yes

View File

@@ -0,0 +1,2 @@
- name: Include OS-specific tasks
ansible.builtin.include_tasks: "{{ ansible_distribution }}.yml"