diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-08-30 11:32:14 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-08-30 11:32:14 +0200 |
commit | 1dbf3a806335ac88d011355391a1d431cfd26f4c (patch) | |
tree | 9a52f5b0b5674cc35c1262ee1184a1fcde9e861e /ansible/roles/unattended-upgrades/templates | |
parent | 895b90fdd83beae6ca8451ab9b0935c3c229f39d (diff) | |
download | infra-1dbf3a806335ac88d011355391a1d431cfd26f4c.tar.gz infra-1dbf3a806335ac88d011355391a1d431cfd26f4c.tar.bz2 infra-1dbf3a806335ac88d011355391a1d431cfd26f4c.tar.xz infra-1dbf3a806335ac88d011355391a1d431cfd26f4c.zip |
o Better unattended upgrades.
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 }}"; |