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

[BUG] automatic_updates: false breaks "Install dnf-automatic" #811

Closed
Seikilos opened this issue Dec 16, 2024 · 2 comments
Closed

[BUG] automatic_updates: false breaks "Install dnf-automatic" #811

Seikilos opened this issue Dec 16, 2024 · 2 comments
Assignees

Comments

@Seikilos
Copy link

Describe the bug
I set
automatic_updates: false

and got

TASK [konstruktoid.hardening : Install dnf-automatic] *******************************************************************************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"msg": "The conditional check 'automatic_updates.enabled' failed. The error was: error while evaluating conditional (automatic_updates.enabled): 'bool object' has no attribute 'enabled'\n\nThe error appears to be in '/root/.ansible/roles/konstruktoid.hardening/tasks/automatic_updates.yml': line 7, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n  block:\n    - name: Install dnf-automatic\n      ^ here\n"}

System (lsb_release -a or similar):

No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm

Additional context
I am on 2.3.0

@konstruktoid
Copy link
Owner

Hi @Seikilos, try

automatic_updates:
  enabled: false

@Seikilos
Copy link
Author

Seikilos commented Dec 16, 2024

Hi @konstruktoid, I've misread the docs! Thanks for the clarification.

Many of the defaults are single bool values like manage_auditd and others, that's why I wrongly assumed the same for automatic_updates.

Thanks again!

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

2 participants