auto-upgrades.squeeze.j2 668 B

12345678910111213141516171819202122
  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. "o=Debian,a=squeeze-lts";
  13. // "origin=Debian,archive=stable,label=Debian-Security";
  14. // "origin=Debian,archive=oldstable,label=Debian-Security";
  15. {% if auto_upgrade_additional_patterns %}
  16. {% for pattern in auto_upgrade_additional_patterns %}
  17. "{{ pattern }}";
  18. {% endfor %}
  19. {% endif %}
  20. };