Ansible/playbook/linux/UpdatePackages.yml

22 lines
376 B
YAML
Raw Permalink Normal View History

2019-04-06 11:28:01 -07:00
- name: Update Repos
hosts: linux
tasks:
- name: Update Repos
become: true
become_method: sudo
apt:
update_cache: yes
- name: Upgrade Packages
become: true
become_method: sudo
apt:
upgrade: yes
- name: Remove unused packages
become: true
become_method: sudo
apt:
autoremove: yes