This commit is contained in:
2026-02-17 13:02:52 +01:00
parent 110ae042d3
commit d0ccb85782

View File

@@ -20,13 +20,16 @@
set_fact:
clustename: "rocky9"
- name: Set proxy name
set_fact:
clustename: "rocky9"
- 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 }}"
- name: Install base packages
ansible.builtin.dnf:
name:
@@ -34,13 +37,6 @@
- gnupg
state: present
# - name: Create apt proxy file
# ansible.builtin.copy:
# dest: /etc/apt/apt.conf.d/02proxy
# content: |
# Acquire::http::Proxy "http://192.168.77.101:3142";
# Acquire::https::Proxy "false";
# ==========================================================
# Import Zabbix GPG key
# ==========================================================