mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-13 13:42:47 +01:00
build
This commit is contained in:
@@ -20,13 +20,16 @@
|
|||||||
set_fact:
|
set_fact:
|
||||||
clustename: "rocky9"
|
clustename: "rocky9"
|
||||||
|
|
||||||
- name: Set proxy name
|
- name: Configure global DNF proxy
|
||||||
set_fact:
|
ansible.builtin.lineinfile:
|
||||||
clustename: "rocky9"
|
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
|
- name: Install base packages
|
||||||
ansible.builtin.dnf:
|
ansible.builtin.dnf:
|
||||||
name:
|
name:
|
||||||
@@ -34,13 +37,6 @@
|
|||||||
- gnupg
|
- gnupg
|
||||||
state: present
|
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
|
# Import Zabbix GPG key
|
||||||
# ==========================================================
|
# ==========================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user