Closed pypeaday closed 1 year ago
I'm still very new to ansible, but I think the url just needs to be .../linux/ubuntu/gpg
instead of .../linux/pop!_os/gpg
. Can the task do that kind of string replacement?
I see that I can just set a variable docker_apt_gpg_key
to https://download.docker.com/linux/ubuntu/gpg...
Same issue with the Task Add Docker repository
in setup-Debian.yml
.
Trying a similar fix to set the variable docker_apt_repository
but no luck yet with setting the right URL
Example: tried "https://download.docker.com/linux/ubuntu jammy stable" but get an error of Invalid repository string: <url>
Sorry for the spam - basically debugging in real time...
The solution for the apt repository is docker_apt_repository: deb https://download.docker.com/linux/ubuntu jammy stable
I don't really know how to roll this in but no one has time to prioritize it I could give it a shot or if it just needs documented I can add some and PR
I guess that worked on your machine. I'm getting "Conflicting values set for option Signed-By regarding source https://download.docker.com/linux/ubuntu/ focal"
Any status/update for this issue?
That looks like you're trying to configure on Ubuntu 20.04 (focal fossa) rather than 22.04 (jammy jellyfish). I don't have any immediate ideas on anything other than to point that out - can you link your playbook? It might just be a misconfigured variable
focal
Thanks for the timely reply. I changed it to focal, with no luck:
- hosts: nodes
become: yes
# Only needed if you want to build docker images on the remote machine
# vars:
# pip_install_packages:
# - name: docker
roles:
# Only needed if you want to build docker images on the remote machine
# - role: geerlingguy.pip
- role: geerlingguy.docker
# Main params
docker_edition: 'ce'
docker_packages:
- "docker-{{ docker_edition }}"
- "docker-{{ docker_edition }}-cli"
- "docker-{{ docker_edition }}-rootless-extras"
docker_packages_state: present
# Additional params
docker_install_compose_plugin: false
docker_compose_package: docker-compose-plugin
docker_compose_package_state: present
# A list of users who will be added to the docker group.
docker_users:
- "{{ ansible_user_id }}"
docker_daemon_options:
# Custom dockerd options can be configured through this dictionary representing the json file /etc/docker/daemon.json
# Added: overlay2 is the new recommended driver: https://docs.docker.com/storage/storagedriver/select-storage-driver
storage-driver: "overlay2"
log-opts:
max-size: "100m"
docker_apt_repository: deb https://download.docker.com/linux/ubuntu focal stable
Edit: Using Ubuntu 20.04, yes
Ok so the relevant docker variables in my playbook are:
# docker
docker_compose_version: "1.29.1"
docker_apt_gpg_key: "https://download.docker.com/linux/ubuntu/gpg"
docker_apt_repository: "deb https://download.docker.com/linux/ubuntu jammy stable"
I opened this issue for Pop_OS! 22.04
which is based on Ubuntu 22.04
- Jammy Jellyfish. You haven't confirmed if you're running an 20.04 or 22.04 distribution. I believe this works just fine on Ubuntu 20 and 22, the problem being that the discovered OS is Pop_OS relies on the Ubuntu releases of Docker, not a Pop_OS release.
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
Please read this blog post to see the reasons why I mark issues as stale.
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.
Love this role! I'm trying to use it to get docker up and running on my new desktop, I see that there was a fix rolled in a couple months ago to address the deprecation of adding gpg keys. My system tries that task because I get a 404 in the
Add Docker apt key
task which is supposed to write to/etc/apt/trusted/gpg.d/docker.asc
.OS: Pop_OS! 22.04 ansible version: 2.10.8