@@ -30,7 +30,7 @@ | |||
file.managed: | |||
- mode: '0644' | |||
- user: root | |||
- group: root | |||
- group: root | |||
- contents: | |||
- "{{ 'Package: ' ~ p_package }}" | |||
- "{{ 'Pin: ' ~ args.pin }}" |
@@ -51,4 +51,3 @@ debian-archive-keyring: | |||
- clean_file: true | |||
{%- endfor %} | |||
{% endfor %} | |||
@@ -6,7 +6,7 @@ | |||
{% set unattended_upgrade = unattended.get('unattended_upgrade', '1') -%} | |||
{% set auto_clean_interval = unattended.get('auto_clean_interval', '7') -%} | |||
{% set verbose = unattended.get('verbose', '2') -%} | |||
APT::Periodic::Enable "{{ enabled }}"; | |||
APT::Periodic::Enable "{{ enabled }}"; | |||
APT::Periodic::Update-Package-Lists "{{ update_package_lists }}"; | |||
APT::Periodic::Download-Upgradeable-Packages "{{ download_upgradeable_packages }}"; | |||
APT::Periodic::Unattended-Upgrade "{{ unattended_upgrade }}"; |
@@ -14,12 +14,12 @@ | |||
Unattended-Upgrade::Allowed-Origins { | |||
{%- for pattern in allowed_origins %} | |||
"{{ pattern }}"; | |||
{%- endfor %} | |||
{%- endfor %} | |||
}; | |||
Unattended-Upgrade::Package-Blacklist { | |||
{%- for package in package_blacklist %} | |||
"{{ package }}"; | |||
{%- endfor %} | |||
{%- endfor %} | |||
}; | |||
Unattended-Upgrade::AutoFixInterruptedDpkg "{{ auto_fix_interrupted_dpkg }}"; | |||
Unattended-Upgrade::MinimalSteps "{{ minimal_steps }}"; |
@@ -9,7 +9,7 @@ apt_unattended_pkgs: | |||
- pkgs: | |||
{% for pkg in apt_map.pkgs %} | |||
- {{ pkg }} | |||
{% endfor %} | |||
{% endfor %} | |||
{{ apt_map.confd_dir }}/{{ apt_map.unattended_config }}: | |||
file.managed: |
@@ -8,11 +8,11 @@ apt: | |||
unattended: | |||
allowed_origins: | |||
- origin1 | |||
- origin2 | |||
package_blacklist: | |||
- origin2 | |||
package_blacklist: | |||
- package1 | |||
- package2 | |||
auto_fix_interrupted_dpkg: true | |||
- package2 | |||
auto_fix_interrupted_dpkg: true | |||
minimal_steps: false | |||
install_on_shutdown: false | |||
mail: root |