debcache
This commit is contained in:
22
.ansible.d/inventory
Normal file
22
.ansible.d/inventory
Normal 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
|
||||
@@ -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
|
||||
@@ -22,3 +30,5 @@
|
||||
- name: Clean up old packages
|
||||
ansible.builtin.apt:
|
||||
autoclean: yes
|
||||
|
||||
|
||||
|
||||
12
roles/mgmt/UpdateAllhosts.yml
Normal file
12
roles/mgmt/UpdateAllhosts.yml
Normal 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
|
||||
Reference in New Issue
Block a user