auto-upgrades.stretch.j2 877 B

123456789101112131415161718192021222324252627
  1. {% if ansible_controlled is defined and ansible_controlled != "" %}
  2. //
  3. // {{ ansible_controlled }}
  4. //
  5. {% endif %}
  6. APT::Periodic::Update-Package-Lists "1";
  7. APT::Periodic::Unattended-Upgrade "1";
  8. Unattended-Upgrade::Mail "root";
  9. //Unattended-Upgrade::MailOnlyOnError "true";
  10. // Automatically upgrade packages from these origin patterns
  11. Unattended-Upgrade::Origins-Pattern {
  12. // Archive or Suite based matching:
  13. // Note that this will silently match a different release after
  14. // migration to the specified archive (e.g. testing becomes the
  15. // new stable).
  16. "o=Debian,a=stretch";
  17. "o=Debian,a=stretch-updates";
  18. // "o=Debian,a=stretch-proposed-updates";
  19. "origin=Debian,archive=stretch,label=Debian-Security";
  20. {% if auto_upgrade_additional_patterns %}
  21. {% for pattern in auto_upgrade_additional_patterns %}
  22. "{{ pattern }}";
  23. {% endfor %}
  24. {% endif %}
  25. };