mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-13 21:52:21 +01:00
klal
This commit is contained in:
12
roles/proxy_repo/tasks/Rocky.yml
Normal file
12
roles/proxy_repo/tasks/Rocky.yml
Normal 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
|
||||
Reference in New Issue
Block a user