itnok.update_ubuntu

update-ubuntu

Build Status GitHub tag Ansible Role

This role updates an Ubuntu system like running apt update && apt dist-upgrade -y.

Actions Taken:

  • Gather current details about the Ubuntu system
  • Update the package list
  • Check for available updates
  • Upgrade all packages to their latest versions
  • Determine if a reboot is needed
  • Reboot the machine if necessary

⚠️ Requirements

None.

πŸ…° Role Variables

None.

πŸ”— Dependencies

To install dependencies, run:

$ ansible-galaxy install <dependency.name>

You can also install required Ansible roles using:

$ ansible-galaxy install -r requirements.yml

πŸ“ Example Playbook

Here’s how to use this role in your playbooks:

---
- hosts: servers
  remote_user: ubuntu   # optional (your remote user)
  gather_facts: yes     # optional
  become: yes

  roles:
    - { role: itnok.update_ubuntu }

πŸ›‘ License

MIT (See LICENSE.md for more details)

Informazioni sul progetto

Performs the equivalent of `apt update && apt dist-upgrade -y` on an Ubuntu host.

Installa
ansible-galaxy install itnok.update_ubuntu
Licenza
mit
Download
4.6k
Proprietario