Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored Oct 1, 2019
1 parent e63a71b commit fa5808f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions menu/roles/update/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
- name: Update APT package cache
apt: update_cache=yes cache_valid_time=600
register: apt_result

- name: Upgrade APT to the latest packages
apt: upgrade=full
apt:
name: "*"
update_cache: yes
state: latest
register: apt_result

- name: Upgrade Distrubution to the latest stable version
Expand Down Expand Up @@ -54,4 +53,4 @@
- name: Purge residual kernel packages
shell: apt-get remove -y --purge $(dpkg -l | grep "^rc\s*linux-image-" | awk '{print $2}' | tr '\n' ' ')
register: apt_result
changed_when: "'packages will be REMOVED' in apt_result.stdout"
changed_when: "'packages will be REMOVED' in apt_result.stdout"

0 comments on commit fa5808f

Please sign in to comment.