From d101694a1c2c3bb2fc62952d79a427d93ccb3e5b Mon Sep 17 00:00:00 2001 From: MrDoobPG <46342172+MrDoobPG@users.noreply.github.com> Date: Fri, 11 Oct 2019 16:24:28 +0200 Subject: [PATCH] Update main.yml --- menu/roles/update/tasks/main.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/menu/roles/update/tasks/main.yml b/menu/roles/update/tasks/main.yml index 23bfe52b..daa51bf9 100644 --- a/menu/roles/update/tasks/main.yml +++ b/menu/roles/update/tasks/main.yml @@ -1,17 +1,29 @@ --- -- name: Upgrade APT to the latest packages - apt: - name: "*" +- name : Update APT to latest packages + apt: update_cache: yes - state: latest + autoclean: yes + autoremove: yes + cache_valid_time: 86400 register: apt_result +#- name: Upgrade APT to the latest packages +# apt: +# name: "*" +# update_cache: yes +# state: latest +# register: apt_result + - name: Upgrade Distrubution to the latest stable version #apt: upgrade=dist state=present only_upgrade=yes apt: - upgrade: dist + upgrade: full state: present register: apt_result + +# upgrade: dist +# state: present +# register: apt_result - name: Install a list of packages apt: