Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible_lza_install_common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Preservation
ansible_lza_install_common
Commits
69931808
Commit
69931808
authored
1 year ago
by
Jörg Sachse
Browse files
Options
Downloads
Patches
Plain Diff
style: use deb822 format and remove deprecated apt_key (resolves #2233 / ND-2723)
parent
e3da4221
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
handlers/main.yml
+4
-0
4 additions, 0 deletions
handlers/main.yml
molecule/resources/playbooks/prepare.yml
+14
-9
14 additions, 9 deletions
molecule/resources/playbooks/prepare.yml
tasks/configure_package_repositories.yml
+21
-7
21 additions, 7 deletions
tasks/configure_package_repositories.yml
with
39 additions
and
16 deletions
handlers/main.yml
+
4
−
0
View file @
69931808
...
@@ -76,3 +76,7 @@
...
@@ -76,3 +76,7 @@
-
name
:
udev-Regel bekannt machen
# noqa no-changed-when
-
name
:
udev-Regel bekannt machen
# noqa no-changed-when
ansible.builtin.command
:
"
udevadm
control
--reload"
ansible.builtin.command
:
"
udevadm
control
--reload"
-
name
:
update apt cache
# noqa no-changed-when
ansible.builtin.apt
:
update_cache
:
true
This diff is collapsed.
Click to expand it.
molecule/resources/playbooks/prepare.yml
+
14
−
9
View file @
69931808
...
@@ -8,15 +8,20 @@
...
@@ -8,15 +8,20 @@
state
:
latest
state
:
latest
update_cache
:
true
update_cache
:
true
become
:
true
become
:
true
-
name
:
add GPG key for SLUB Debian repository
-
name
:
add custom repo for SLUB's custom Debian repo
ansible.builtin.apt_key
:
ansible.builtin.deb822_repository
:
url
:
"
https://sdvdebianrepo.slub-dresden.de/deb-repository/pub.gpg.key"
architectures
:
"
amd64"
state
:
present
components
:
"
main"
enabled
:
true
name
:
"
slub"
pdiffs
:
true
signed_by
:
"
https://sdvdebianrepo.slub-dresden.de/deb-repository/pub.gpg.key"
suites
:
"
{{
ansible_lsb.codename
}}"
uris
:
"
https://sdvdebianrepo.slub-dresden.de/deb-repository"
notify
:
update apt cache
become
:
true
become
:
true
-
name
:
add repo URL to sources.list
handlers
:
ansible.builtin.apt_repository
:
-
name
:
update apt cache
repo
:
"
deb
https://sdvdebianrepo.slub-dresden.de/deb-repository
bullseye
main"
ansible.builtin.apt
:
state
:
present
update_cache
:
true
update_cache
:
true
mode
:
"
0644"
become
:
true
become
:
true
This diff is collapsed.
Click to expand it.
tasks/configure_package_repositories.yml
+
21
−
7
View file @
69931808
...
@@ -2,17 +2,31 @@
...
@@ -2,17 +2,31 @@
-
name
:
configure Debian repositories
-
name
:
configure Debian repositories
when
:
"
ansible_facts['distribution']
==
'Debian'"
when
:
"
ansible_facts['distribution']
==
'Debian'"
block
:
block
:
-
name
:
öffentlichen Schlüssel hinzufügen (sonst muss bei jeder Installation eine Warnmeldung bestätigt werden)
-
name
:
|
REMOVE custom repo GPG key for SLUB's Debian repo
(apt-key deprecated)
ansible.builtin.apt_key
:
ansible.builtin.apt_key
:
url
:
"
{{
vault_debrepo_url
}}deb-repository/pub.gpg.key"
url
:
"
{{
vault_debrepo_url
}}deb-repository/pub.gpg.key"
tags
:
[
aptkey
]
state
:
absent
-
name
:
SLUB-lokales
Debian
-R
epo
sitory für Installation der SubApp in /etc/apt/sources.list.d/ eintragen
-
name
:
REMOVE SLUB's custom
Debian
r
epo
(legacy repo format)
ansible.builtin.apt_repository
:
ansible.builtin.apt_repository
:
repo
:
"
deb
{{
vault_debrepo_url
}}deb-repository
{{
ansible_facts['distribution_release']
}}
main"
repo
:
"
deb
{{
vault_debrepo_url
}}deb-repository
{{
ansible_lsb.codename
}}
main"
state
:
present
state
:
absent
update_cache
:
"
yes"
mode
:
"
0644"
-
name
:
add custom repo for SLUB's custom Debian repo
ansible.builtin.deb822_repository
:
architectures
:
"
amd64"
components
:
"
main"
enabled
:
true
name
:
"
slub"
pdiffs
:
true
signed_by
:
"
{{
vault_debrepo_url
}}deb-repository/pub.gpg.key"
suites
:
"
{{
ansible_lsb.codename
}}"
uris
:
"
{{
vault_debrepo_url
}}deb-repository"
notify
:
update apt cache
-
name
:
Flush handlers (we can't wait for the handler to fire if we want to install packages from the newly configured repo)
meta
:
flush_handlers
-
name
:
add custom repositories
-
name
:
add custom repositories
ansible.builtin.yum_repository
:
ansible.builtin.yum_repository
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment