mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-13 05:42:46 +01:00
build
This commit is contained in:
@@ -1 +1,3 @@
|
|||||||
zabbix_api_url: "https://zabbix.sectorq.eu/api_jsonrpc.php"
|
zabbix_api_url: "https://zabbix.sectorq.eu/api_jsonrpc.php"
|
||||||
|
dnf_proxy_host: "192.168.77.101"
|
||||||
|
dnf_proxy_port: "3128"
|
||||||
@@ -20,6 +20,16 @@
|
|||||||
set_fact:
|
set_fact:
|
||||||
clustename: "alma10"
|
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
|
- name: Show default IP
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: "{{ ansible_default_ipv4.address }}"
|
msg: "{{ ansible_default_ipv4.address }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user