title: Ansible: how to import GPG private key from file?
body: <p>Manually, to import a GPG private key:</p>
  
  <pre><code>gpg --import myprivatekey.key
  </code></pre>
  
  <p>How can I do this using Ansible on a remote machine? Suppose the private key resides as a file on my local machine, how can I import the private key on a remote machine using Ansible?</p>
  
  <p>I've searched the documentation, but Ansible does not seem to have a module for this task.</p>