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

Fixed apt cache update #6

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
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
4 changes: 0 additions & 4 deletions handlers/main.yml

This file was deleted.

14 changes: 11 additions & 3 deletions tasks/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
state: present

- name: Remove orphan opencast package repository definition
notify: Update apt cache
register: rm_orphan_repo
ansible.builtin.apt_repository:
repo: >-
deb https://pkg.opencast.org/debian
Expand All @@ -22,7 +22,7 @@
state: absent

- name: Install the opencast package repository
notify: Update apt cache
register: add_oc_repo
ansible.builtin.apt_repository:
repo: >-
deb https://pkg.opencast.org/debian
Expand All @@ -33,7 +33,7 @@
state: "{{ 'present' if opencast_repository_enabled_release | bool else 'absent' }}"

- name: Install the opencast testing package repository
notify: Update apt cache
register: add_oc_testing_repo
ansible.builtin.apt_repository:
repo: >-
deb https://pkg.opencast.org/debian
Expand All @@ -42,3 +42,11 @@
filename: opencast
# yamllint disable-line rule:line-length
state: "{{ 'present' if opencast_repository_enabled_testing | bool else 'absent' }}"

- name: Update apt cache
ansible.builtin.apt:
update_cache: true
when: >
rm_orphan_repo is changed or
add_oc_repo is changed or
add_oc_testing_repo is changed
Loading