Skip to content

Commit

Permalink
updated variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ckaserer committed Sep 7, 2021
1 parent 315f1b1 commit 7fd5f3c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ unattended_dpkg_options: []
# - "--force-confold"

# Acquire::http::Dl-Limit
# Use apt bandwidth limit feature, this example limits the download speed to 70kb/sec
# Use apt bandwidth limit feature, this example limits the download speed to 70kB/sec
#unattended_dl_limit: 70

...
2 changes: 1 addition & 1 deletion molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Converge
hosts: instance
vars:
unattended_periodic_enabled: 0
unattended_enabled: 0
unattended_upgrade: 2
unattended_update_package_list: 2
unattended_download_upgradeable: 1
Expand Down
4 changes: 2 additions & 2 deletions molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Verify
hosts: instance
vars:
unattended_periodic_enabled: 0
unattended_enabled: 0
unattended_upgrade: 2
unattended_update_package_list: 2
unattended_download_upgradeable: 1
Expand Down Expand Up @@ -33,7 +33,7 @@
- name: APT::Periodic::Enable
lineinfile:
dest: /etc/apt/apt.conf.d/20auto-upgrades
line: APT::Periodic::Enable "{{ unattended_periodic_enabled }}";
line: APT::Periodic::Enable "{{ unattended_enabled }}";
check_mode: yes
register: verify
failed_when: verify.changed
Expand Down
2 changes: 1 addition & 1 deletion templates/auto-upgrades.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// {{ ansible_managed }}

// Enable the update/upgrade script (0=disable)
APT::Periodic::Enable "{{ unattended_periodic_enabled }}";
APT::Periodic::Enable "{{ unattended_enabled }}";

{% if unattended_upgrade is defined %}
// Run the "unattended-upgrade" security upgrade script
Expand Down

0 comments on commit 7fd5f3c

Please sign in to comment.