This commit is contained in:
tolerryan
2025-04-09 23:52:25 -05:00
parent beff55a855
commit 648df58470
3 changed files with 45 additions and 1 deletions

View File

@@ -1,3 +1,11 @@
- name: Configure apt proxy
ansible.builtin.lineinfile:
path: /etc/apt/apt.conf.d/proxy
line: 'Acquire::http { Proxy "http://192.168.0.60:3142"; }'
state: present
create: yes
mode: '0644'
- name: Update apt cache
ansible.builtin.apt:
update_cache: yes
@@ -21,4 +29,6 @@
- name: Clean up old packages
ansible.builtin.apt:
autoclean: yes
autoclean: yes

View File

@@ -0,0 +1,12 @@
---
- hosts: all
become: yes
remote_user: ansible
gather_facts: false
vars:
tasks:
- name: Upgrade-packages.yml - update packages
include: ../../lib/upgrade-packages.yml