role-service-proxmox_virtua.../tasks/repo-enable-non-free.yml

9 lines
301 B
YAML
Raw Permalink Normal View History

2025-04-03 02:36:50 +02:00
# SPDX-License-Identifier: MIT
- name: 'In ''/etc/apt/sources.list'' enable non-free component in all Debian-native repos'
ansible.builtin.replace:
path: '/etc/apt/sources.list'
regexp: '^(.*?)( main contrib(?! non-free))'
replace: '\g<1>\g<2> non-free'
notify:
- 'apt-get update'