itnok.update_ubuntu
update-ubuntu
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