Skip to content

Instantly share code, notes, and snippets.

@casperghst42
Last active April 25, 2024 09:50
Show Gist options
  • Save casperghst42/cd2505a23bf726cf25f448c22b1734b7 to your computer and use it in GitHub Desktop.
Save casperghst42/cd2505a23bf726cf25f448c22b1734b7 to your computer and use it in GitHub Desktop.
Add non-free-firmware to sources.list
- name: Add non-free repository
replace:
dest: /etc/apt/sources.list
regexp: '^(deb(?!.* non-free).*)'
replace: '\1 non-free'
@casperghst42
Copy link
Author

This would (with Debian 12 and later) be:

  • name: Add non-free repository
    replace:
    dest: /etc/apt/sources.list
    regexp: '^(deb(?!.* non-free).*)'
    replace: '\1 non-free non-free-firmware'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment