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

22
.ansible.d/inventory Normal file
View File

@@ -0,0 +1,22 @@
[atlanta]
host1
host2
[raleigh]
host3
host4
[southeast:children]
atlanta
raleigh
[southeast:vars]
some_server=foo.southeast.example.com
halon_system_timeout=30

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 - name: Update apt cache
ansible.builtin.apt: ansible.builtin.apt:
update_cache: yes update_cache: yes
@@ -22,3 +30,5 @@
- name: Clean up old packages - name: Clean up old packages
ansible.builtin.apt: 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