Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
docker
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
webarch
docker
Commits
ad608b03
Commit
ad608b03
authored
2 years ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
Check key and sub-key fingerprints
parent
1c68259c
No related branches found
No related tags found
No related merge requests found
Pipeline
#21751
failed
2 years ago
Stage: lint
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/docker.yml
+7
-2
7 additions, 2 deletions
tasks/docker.yml
vars/main.yml
+9
-1
9 additions, 1 deletion
vars/main.yml
with
16 additions
and
3 deletions
tasks/docker.yml
+
7
−
2
View file @
ad608b03
...
...
@@ -82,7 +82,7 @@
group
:
root
-
name
:
Docker gpg key check command
ansible.builtin.command
:
gpg --with-colons --
with-fingerprint --with-subkey-fingerprint
/etc/apt/keyrings/docker.asc
ansible.builtin.command
:
gpg --with-colons --
show-keys
/etc/apt/keyrings/docker.asc
check_mode
:
false
changed_when
:
false
register
:
docker_gpg
...
...
@@ -90,7 +90,12 @@
-
name
:
Docker gpg key checked
ansible.builtin.assert
:
that
:
-
docker_gpg_fingerprint in docker_gpg.stdout
-
fpr in docker_gpg.stdout
loop
:
"
{{
docker_gpg_fingerprints
}}"
loop_control
:
extended
:
true
loop_var
:
fpr
label
:
"
{{
ansible_loop.index
}}"
-
name
:
Docker apt repo available
ansible.builtin.template
:
...
...
This diff is collapsed.
Click to expand it.
vars/main.yml
+
9
−
1
View file @
ad608b03
---
# You can get the sha256 checksum using the following command:
# wget -q https://download.docker.com/linux/debian/gpg -O - | sha256sum - | awk '{ print $1 }'
docker_gpg_checksum
:
"
sha256:1500c1f56fa9e26b9b8f42452a553675796ade0807cdce11975eb98170b3a570"
docker_gpg_fingerprint
:
9DC858229FC7DD38854AE2D88D81803C0EBFCD88
# You can get the gpg fingerprints using the following command:
# wget -q https://download.docker.com/linux/debian/gpg -O - | gpg --with-colons --show-keys - | grep ^fpr | sed 's/^fpr//' | sed 's/://g' | sed 's/^/ - /'
docker_gpg_fingerprints
:
-
9DC858229FC7DD38854AE2D88D81803C0EBFCD88
-
D3306A018370199E527AE7997EA0A9C3F273FCD8
docker_pkg
:
-
containerd.io
-
docker-ce
...
...
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