GithubHelp home page GithubHelp logo

slashsbin / mega-update Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 54 KB

One Ansible role to update them all

Home Page: https://galaxy.ansible.com/ui/standalone/roles/slashsbin/mega_update/

License: Other

Makefile 100.00%
ansible ansible-role ansible-galaxy ansible-roles

mega-update's Introduction

Ansible Role GitHub Actions Workflow Status

Mega Update

One Ansible role to update them all.

Supports

  • 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
  • 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

Requirements

List of used Ansible modules:

  • ansible.builtin.apt
  • ansible.builtin.command
  • ansible.builtin.debug
  • ansible.builtin.set_fact
  • ansible.builtin.stat
  • community.docker.docker_host_info
  • community.docker.docker_image_info
  • community.docker.docker_image
  • community.general.cargo
  • community.general.composer
  • community.general.homebrew_cask
  • community.general.homebrew
  • community.general.npm

Role Variables

None.

Dependencies

None.

Install

ansible-galaxy role install slashsbin.mega_update

Example Playbook

An example how to include this role:

- hosts: your-servers
  roles:
     - { role: slashsbin.mega_update }

Example Local Usages

Run Mega Update, updating everything supported

Clone the project and execute:

ansible-playbook --inventory tests/inventory --ask-become-pass tests/test.yml

or, simply use the make recipe:

make run

List all supported tasks and their tags

make list-tasks

Update APT packages only

ansible-playbook --inventory tests/inventory --ask-become-pass tests/test.yml --tags apt

Update APT packages only, without running cleanup tasks

ansible-playbook --inventory tests/inventory --ask-become-pass tests/test.yml --tags apt --skip-tags cleanup

Tests

Run Ansible syntax check and lint:

make lint

License

The Code is licensed under the MIT License.

Author Information

This role was created by Mohammad Shokri Khanghah.

mega-update's People

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.