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

Debian Apt-key deploecation fixed #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions tasks/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,22 @@
- gnupg2
cache_valid_time: 3600

- name: Create directory for keyrings used by apt
ansible.builtin.file:
path: /etc/apt/keyrings
state: directory
owner: root
group: root
mode: '0755'

- name: Install the opencast package repository key
ansible.builtin.apt_key:
ansible.builtin.get_url:
url: https://pkg.opencast.org/gpgkeys/opencast-deb.key
state: present
dest: /etc/apt/keyrings/opencast.asc
force: false
owner: root
group: root
mode: '0644'

- name: Remove orphan opencast package repository definition
register: rm_orphan_repo
Expand All @@ -25,7 +37,7 @@
register: add_oc_repo
ansible.builtin.apt_repository:
repo: >-
deb https://pkg.opencast.org/debian
deb [signed-by=/etc/apt/keyrings/opencast.asc] https://pkg.opencast.org/debian
{{ opencast_version_major }}.x
stable
filename: opencast
Expand All @@ -36,7 +48,7 @@
register: add_oc_testing_repo
ansible.builtin.apt_repository:
repo: >-
deb https://pkg.opencast.org/debian
deb [signed-by=/etc/apt/keyrings/opencast.asc] https://pkg.opencast.org/debian
{{ opencast_version_major }}.x
testing
filename: opencast
Expand Down
Loading