mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-12 21:32:48 +01:00
build
This commit is contained in:
@@ -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
|
||||
# ==========================================================
|
||||
|
||||
Reference in New Issue
Block a user