Files
meshbook/examples/apt_update_example.yaml
2025-02-13 13:44:23 +01:00

13 lines
301 B
YAML

---
name: Refresh the apt cache
device: "<Device-Name>"
#target_os: "Linux"
variables:
- name: package_manager
value: "apt"
tasks:
- name: refresh the cache
command: "{{ package_manager }} update"
- name: display available upgrades
command: "{{ package_manager }} list --upgradable"