This commit is contained in:
2026-02-17 11:06:16 +01:00
parent 861d05472b
commit 9887f6c8f6
2 changed files with 12 additions and 0 deletions

View File

@@ -1 +1,3 @@
zabbix_api_url: "https://zabbix.sectorq.eu/api_jsonrpc.php"
dnf_proxy_host: "192.168.77.101"
dnf_proxy_port: "3128"

View File

@@ -20,6 +20,16 @@
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:
msg: "{{ ansible_default_ipv4.address }}"