Pembuatan fungsi awal

This commit is contained in:
Ronggo Radityo
2018-09-25 19:34:38 +07:00
parent 37eec70e1a
commit 912ab3ff61
2 changed files with 32 additions and 41 deletions

View File

@@ -1,2 +1,21 @@
---
# tasks file for roles/debian-update
# tasks file for roles/debian-update
- name: Update packages list
apt:
update_cache: yes
when: ansible_os_family == 'Debian'
- name: Upgrade packages
apt:
upgrade: yes
when: ansible_os_family == 'Debian'
- name: Remove dependencies that are no longer required
apt:
autoremove: yes
when: ansible_os_family == 'Debian'
- name: Remove useless packages from the cache
apt:
autoclean: yes
when: ansible_os_family == 'Debian'