Skip to content

Commit

Permalink
Merge pull request #418 from nevart/apt-key-fix-check-mode
Browse files Browse the repository at this point in the history
APT key: don't force and provide checksum, to fix check mode
  • Loading branch information
geerlingguy committed Aug 10, 2023
2 parents 7fa232d + 7c86fe1 commit 8bb277b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ docker_apt_arch: "{{ 'arm64' if ansible_architecture == 'aarch64' else 'amd64' }
docker_apt_repository: "deb [arch={{ docker_apt_arch }} signed-by=/etc/apt/trusted.gpg.d/docker.asc] {{ docker_repo_url }}/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} {{ docker_apt_release_channel }}"

Check warning on line 38 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

38:201 [line-length] line too long (226 > 200 characters)

Check warning on line 38 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

38:201 [line-length] line too long (226 > 200 characters)

Check warning on line 38 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

38:201 [line-length] line too long (226 > 200 characters)

Check warning on line 38 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

38:201 [line-length] line too long (226 > 200 characters)

Check warning on line 38 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

38:201 [line-length] line too long (226 > 200 characters)

Check warning on line 38 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

38:201 [line-length] line too long (226 > 200 characters)

Check warning on line 38 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

38:201 [line-length] line too long (226 > 200 characters)

Check warning on line 38 in defaults/main.yml

View workflow job for this annotation

GitHub Actions / Lint

38:201 [line-length] line too long (226 > 200 characters)
docker_apt_ignore_key_error: true
docker_apt_gpg_key: "{{ docker_repo_url }}/{{ ansible_distribution | lower }}/gpg"
docker_apt_gpg_key_checksum: "sha256:1500c1f56fa9e26b9b8f42452a553675796ade0807cdce11975eb98170b3a570"

# Used only for RedHat/CentOS/Fedora.
docker_yum_repo_url: "{{ docker_repo_url }}/{{ (ansible_distribution == 'Fedora') | ternary('fedora','centos') }}/docker-{{ docker_edition }}.repo"
Expand Down
3 changes: 2 additions & 1 deletion tasks/setup-Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
url: "{{ docker_apt_gpg_key }}"
dest: /etc/apt/trusted.gpg.d/docker.asc
mode: '0644'
force: true
force: false
checksum: "{{ docker_apt_gpg_key_checksum | default(omit) }}"
register: add_repository_key
ignore_errors: "{{ docker_apt_ignore_key_error }}"
when: docker_add_repo | bool
Expand Down

0 comments on commit 8bb277b

Please sign in to comment.