Enable unattended upgrades on Ubuntu machines
Find a file
2017-12-24 23:31:05 +01:00
defaults Initial version 2015-07-03 23:48:27 +02:00
files Initial version 2015-07-03 23:48:27 +02:00
meta Added Meta for ansible-galaxy 2015-07-03 23:59:43 +02:00
tasks Initial version 2015-07-03 23:48:27 +02:00
History.md prepare release v0.1.0 2017-12-24 23:31:05 +01:00
LICENSE Add LICENSE 2017-12-24 23:30:59 +01:00
README.md Added Meta for ansible-galaxy 2015-07-03 23:59:43 +02:00

ubuntu-unattended

Enable unattended upgrades on Ubuntu machines

Role Variables

---
mail_target:    "mail@example.com"  # The email address to send reports to
reboot_time:    "04:00"             # When to reboot the server after updates
do_reboot:      "true"              # Execute an automated reboot?
do_autoremove:  "false"             # Execute 'apt-get autoremove'?

You should ensure do_reboot and do_autoremove are strings as they are written into the apt configuration and that file expects true instead of True, which will get written if you pass a bool here.

Example Playbook

---
- hosts: servers
  roles:
    - role: ubuntu-unattended
      mail_target: mymail@provider.com
      reboot_time: 04:00
      do_reboot: "true"
      do_autoremove: "false"

License

Apache 2.0