Provides updates for your system.
This role is a part of many compatible roles. Have a look at the documentation of these roles for further information.
Here is an overview of related roles:
Access to a repository containing packages, likely on the internet.
This role can be used to prepare your system:
Download the dependencies by issuing this command:
ansible-galaxy install --role-file requirements.yml
This role has been tested against the following distributions and Ansible version:
distribution | ansible 2.4 | ansible 2.5 | ansible 2.6 |
---|---|---|---|
alpine-edge | yes | yes | yes |
alpine-latest | yes | yes | yes |
archlinux | yes | yes | yes |
centos-6 | yes | yes | yes |
centos-latest | yes | yes | yes |
debian-latest | yes | yes | yes |
debian-stable | yes | yes | yes |
fedora-latest | yes | yes | yes |
fedora-rawhide | yes | yes | yes |
opensuse-leap | yes | yes | yes |
opensuse-tumbleweed | yes | yes | yes |
ubuntu-artful | yes | yes | yes |
ubuntu-latest | yes | yes | yes |
The simplest way possible:
- hosts: servers roles: - robertdebock.bootstrap - robertdebock.update
The role sets a variable so it's possible to understand if changes were made: - update_result
Here is an example of how to use that variable:
- hosts: servers roles: - robertdebock.update tasks: - name: send email mail: to: sysadmin@example.com subject: "server {{ ansible_hostsname }} updated" when: - update_result.changed
Install this role using galaxy install robertdebock.update
.
Apache License, Version 2.0