mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-10-28 13:07:06 +01:00
klal
This commit is contained in:
1 parent
5e041fed7c
commit
7fa9e07ffa
6 files changed
+162
No files matched your search
@@ -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