Hi I am stuck trying to get apt_key to download a key from a key server.
Here is my code which just hags indefinitely.
- name: Get upstream APT GPG key
apt_key:
id: “{{ docker_apt_key }}”
keyserver: “{{ key_server }}”
state: “present”
Here are my vars…
docker_apt_key: “9DC858229FC7DD38854AE2D88D81803C0EBFCD88”
key_server: “keyserver.ubuntu.com”
This script is created on the host.
/tmp/.ansible/tmp/ansible-tmp-1520452202.6258628-133739762258932/apt_key.py
When I run it manually with the verbosity turned up, I can see that it hangs after this line…
code object from ‘/usr/lib/python3.4/encodings/pycache/cp437.cpython-34.pyc’
import ‘encodings.cp437’ # <_frozen_importlib.SourceFileLoader object at 0x7ff409266828>
Any suggestions?
Thanks,
David