mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-12 21:32:48 +01:00
12 lines
385 B
YAML
12 lines
385 B
YAML
|
|
- 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 |