This repository has been archived on 2024-04-30. You can view files and clone it, but cannot push or open issues or pull requests.
setup/roles/common/tasks/main.yml
2023-02-26 01:17:16 +01:00

15 lines
349 B
YAML

- name: Enable non-free packages
become: true
replace:
path: "/etc/apt/sources.list"
regexp: "^(.*main.*?)( contrib non-free)?$"
replace: '\1 contrib non-free'
- name: APT upgrade
become: true
apt:
autoremove: true
upgrade: yes
state: latest
update_cache: yes
cache_valid_time: 86400 # One day
tags: update