apt_key hanging issues

13 views
Skip to first unread message

David Jones

unread,
Mar 7, 2018, 3:16:45 PM3/7/18
to Ansible Project
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

Reply all
Reply to author
Forward
0 new messages