One Ansible role to update them all.
- APT: Update all Debian packages to the latest version.
Tags:
apt,cleanup - Composer: Update Composer executable and globally installed packages.
Tags:
composer - Docker: Pull latest version of Docker images from repositories.
Tags:
docker,cleanup - Flatpak: Update all system-wide installed flatpaks, including applications and runtimes.
Tags:
flatpak - Homebrew: Upgrade outdated brews and casks.
Tags:
homebrew,cleanup - macOS: Update MacOS apps via the official system software update tool cli.
Tags:
osx - NPM: Upgrade globally installed npm packages.
Tags:
npm - Phive: Update Phive executable and installed phars.
Tags:
phive - Rust: Update Rust toolchains, rustup and globally installed cargo packages.
Tags:
rust - Snaps: Referesh all installed Snaps.
Tags:
snap
List of used Ansible modules:
ansible.builtin.aptansible.builtin.commandansible.builtin.debugansible.builtin.set_factansible.builtin.statcommunity.docker.docker_host_infocommunity.docker.docker_image_infocommunity.docker.docker_imagecommunity.general.cargocommunity.general.composercommunity.general.homebrew_caskcommunity.general.homebrewcommunity.general.npm
None.
None.
ansible-galaxy role install slashsbin.mega_updateAn example how to include this role:
- hosts: your-servers
roles:
- { role: slashsbin.mega_update }Clone the project and execute:
ansible-playbook --inventory tests/inventory --ask-become-pass tests/test.ymlor, simply use the make recipe:
make runmake list-tasksansible-playbook --inventory tests/inventory --ask-become-pass tests/test.yml --tags aptansible-playbook --inventory tests/inventory --ask-become-pass tests/test.yml --tags apt --skip-tags cleanupRun Ansible syntax check and lint:
make lintThe Code is licensed under the MIT License.
This role was created by Mohammad Shokri Khanqah.