Update update-apt-packages.yaml
This commit is contained in:
@@ -1,9 +1,14 @@
|
|||||||
---
|
---
|
||||||
- hosts: all
|
- name: Update and upgrade apt packages
|
||||||
|
hosts: all
|
||||||
|
|
||||||
become: true
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: update apt packages
|
- name: Update packages with apt
|
||||||
apt:
|
when: ansible_pkg_mgr == 'apt'
|
||||||
upgrade: yes
|
ansible.builtin.apt:
|
||||||
update_cache: yes
|
update_cache: true
|
||||||
|
|
||||||
|
- name: Upgrade packages with apt
|
||||||
|
when: ansible_pkg_mgr == 'apt'
|
||||||
|
ansible.builtin.apt:
|
||||||
|
upgrade: dist
|
||||||
Reference in New Issue
Block a user