Select Git revision
.gitlab-ci.yml
prepare.yml 897 B
---
- name: Prepare
hosts: "*"
tasks:
- name: install GPG
ansible.builtin.apt:
name: "gnupg"
state: latest
update_cache: true
become: true
- name: add non-free repos to be able to install libmath-random-perl from Debian public repo
ansible.builtin.replace:
path: "/etc/apt/sources.list"
regexp: '^(.*) main$'
replace: '\g<1> main non-free'
become: true
- name: add GPG key for SLUB Debian repository
ansible.builtin.apt_key:
url: "https://sdvdebianrepo.slub-dresden.de/deb-repository/pub.gpg.key"
state: present
become: true
- name: add repo URL to sources.list
ansible.builtin.apt_repository:
repo: "deb https://sdvdebianrepo.slub-dresden.de/deb-repository bullseye main"
state: present
update_cache: true
mode: "0644"
become: true