Add role/playbook for updating Debian packages
This commit is contained in:
11
roles/infrastructure/debian_update/meta/main.yml
Normal file
11
roles/infrastructure/debian_update/meta/main.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
galaxy_info:
|
||||
author: Kevin M. Thompson (phlux)
|
||||
description: Update all packages on Debian systems
|
||||
license: MIT
|
||||
min_ansible_version: 2.9
|
||||
platforms:
|
||||
- name: Debian
|
||||
versions:
|
||||
- all
|
||||
dependencies: []
|
11
roles/infrastructure/debian_update/tasks/main.yml
Normal file
11
roles/infrastructure/debian_update/tasks/main.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
- name: Update apt cache
|
||||
ansible.builtin.apt:
|
||||
update_cache: yes
|
||||
cache_valid_time: 3600
|
||||
|
||||
- name: Upgrade all packages to latest
|
||||
ansible.builtin.apt:
|
||||
upgrade: dist
|
||||
autoremove: yes
|
||||
autoclean: yes
|
Reference in New Issue
Block a user