Skip to content

Commit

Permalink
^^
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Aug 23, 2019
1 parent 2bb1b93 commit cda4bf7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
21 changes: 21 additions & 0 deletions menu/pgui/tasks/dynamic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
- name: Update APT package cache
apt: update_cache=yes cache_valid_time=600

- name: Upgrade APT to the latest packages
apt: upgrade=dist
register: apt_result

- name: Install a list of packages
command: apt-get install -y jq dnsutils ctop
register: apt_result
changed_when: "'packages will be installed' in apt_result.stdout"

- name: Autoremove unused packages
command: apt-get -y autoremove
register: apt_result
changed_when: "'packages will be REMOVED' in apt_result.stdout"

- 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"
1 change: 0 additions & 1 deletion menu/pgui/templates/11

This file was deleted.

0 comments on commit cda4bf7

Please sign in to comment.