Provides updates for your system.
Access to a repository containing packages, likely on the internet.
Download the dependencies by issuing this command:
ansible-galaxy install --role-file requirements.yml
The simplest way possible:
- hosts: servers roles: - 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
Robert de Bock robert@meinit.nl