title: Ansible add GPG Keyserver
body: <p>I need to incorporate these two commands into my ansible script:</p>
  
  <pre><code>  # sudo gpg --keyserver hkp://keys.gnupg.net --recv-keys #######
    # sudo gpg -a --export ####### | sudo apt-key add -
  </code></pre>
  
  <p>I am referring to this <a href="http://docs.ansible.com/ansible/apt_key_module.html" rel="nofollow">ansible link</a> but I am unable to produce anything that works. I tried this:</p>
  
  <pre><code>apt_key: keyserver=hkp://keys.gnupg.net id=######
  </code></pre>
  
  <p>and get the following error:</p>
  
  <pre><code> FAILED! =&gt; {"changed": false, "failed": true, "msg": "unsupported parameter for module: keyserver"}
  </code></pre>
  
  <p>Is there a way to properly add gpg keys with ansible?</p>