title: How to retrieve and use a tar.gz.asc from github in an Ansible playbook? With a given gpg key?
body: <p>I am trying to install <em>ruby-install</em> per the instructions under "PGP" <a href="https://github.com/postmodern/ruby-install#readme" rel="nofollow noreferrer">here</a> but via an Ansible playbook. </p>
  
  <p>The playbook is now erroring out syntactically with the "gpg:" line below.  </p>
  
  <p>I've Googled quite a bit but still haven't found examples that made the concept click for me.  Couldn't find Ansible documentation on gpg.  </p>
  
  <p>This is related to building a Vagrant dev vm easily reproducible and easily change-controlled, so I'd rather not add complexity by just installing from the command line or via another script after the VM is up.</p>
  
  <pre><code>- name: get gpg for ruby install via the postmodern developer
    get_url:    
      url: https://raw.github.com/postmodern/postmodern.github.io/master/postmodern.asc
      dest: /tmp/postmodern.asc
  
  - name: import gpg key    
    gpg:
      key_file: /tmp/postmodern.asc
  
  # To do later:     
  
  # wget https://raw.github.com/postmodern/ruby-install/master/pkg/ruby-#install-0.7.0.tar.gz.asc
  # gpg --verify ruby-install-0.7.0.tar.gz.asc ruby-install-0.7.0.tar.gz
  </code></pre>
  
  <p>I expected the <em>gpg</em> command to add the gpg key in the file to the system's collection, but the results were as follows:</p>
  
  <pre><code>[WARNING]: Ansible is in a world writable directory (/vagrant), ignoring it as an ansible.cfg source.
  Using /etc/ansible/ansible.cfg as config file
  ERROR! no action detected in task
  
  The error appears to have been in     '/vagrant/ansible/roles/framework/tasks/main.yml': line 15, column 3, but may
  be elsewhere in the file depending on the exact syntax problem.
  
  The offending line appears to be:
  
  - name: import gpg key
    ^ here
  Ansible failed to complete successfully. Any error output should be
  visible above. Please fix these errors and try again.
  </code></pre>