mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-12 21:32:48 +01:00
build
This commit is contained in:
@@ -1 +1,3 @@
|
||||
zabbix_api_url: "https://zabbix.sectorq.eu/api_jsonrpc.php"
|
||||
dnf_proxy_host: "192.168.77.101"
|
||||
dnf_proxy_port: "3128"
|
||||
@@ -19,6 +19,16 @@
|
||||
- name: Set proxy group name
|
||||
set_fact:
|
||||
clustename: "alma10"
|
||||
|
||||
- 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
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
||||
- name: Show default IP
|
||||
ansible.builtin.debug:
|
||||
|
||||
Reference in New Issue
Block a user