debcache
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
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