Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unattended_dl_limit doesn't work #76

Closed
Encephala opened this issue Dec 12, 2022 · 1 comment
Closed

unattended_dl_limit doesn't work #76

Encephala opened this issue Dec 12, 2022 · 1 comment

Comments

@Encephala
Copy link

I have passed unattended_dl_limit: 40000 to the role:

- name: Set Unattended upgrades
  ansible.builtin.import_role:
    name: hifis.unattended_upgrades
  vars:
    unattended_dl_limit: 40000
  when: ansible_facts['os_family'] == 'Debian'

But after running the playbook successfully, the change is not made in the 50unattended-upgrades file on the destination:

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

Looking at the defaults for the role, I noticed that unattended_dl_limit is commented out (see below), so perhaps you are already aware of this, but I can't find any mention of it in the repo's README, so I figured I'd share anyways to be sure :)

# Use apt bandwidth limit feature, this example limits the download speed to 70kb/sec
#unattended_dl_limit: 70

I would love if this feature were implemented again!

@Encephala
Copy link
Author

Encephala commented Dec 12, 2022

Never mind, I just noticed the 90-ansible-unattended-upgrades file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant