diff options
Diffstat (limited to 'ansible/roles/unattended-upgrades/templates')
-rw-r--r-- | ansible/roles/unattended-upgrades/templates/unattended-upgrades.j2 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ansible/roles/unattended-upgrades/templates/unattended-upgrades.j2 b/ansible/roles/unattended-upgrades/templates/unattended-upgrades.j2 new file mode 100644 index 0000000..1171c6e --- /dev/null +++ b/ansible/roles/unattended-upgrades/templates/unattended-upgrades.j2 @@ -0,0 +1,19 @@ +// Managed with Ansible +Unattended-Upgrade::Origins-Pattern { +{% if unattended_upgrades_origin_list -%} +{% for p in unattended_upgrades_origin_list %} + "{% if p.origin -%} +origin={{ p.origin }}, +{%- endif %}{% if p.codename -%} +codename={{ p.codename }}, +{%- endif %}{% if p.label -%} +label={{ p.label }}, +{%- endif %}"; +{% endfor %} +{% else %} + "o=*"; +{% endif %} +} +Unattended-Upgrade::MinimalSteps "{{ unattended_upgrades.minimal_steps }}"; +Unattended-Upgrade::Mail "{{ unattended_upgrades.mail }}"; +Unattended-Upgrade::MailOnlyOnError "{{ unattended_upgrades.mail_only_on_error }}"; |