# apt\_key module could use some retesting

**URL:** <https://forum.ansible.com/t/apt-key-module-could-use-some-retesting/12258>\
**Category:** Ansible Project\
**Created:** [January 28, 2013, 8:57pm UTC](https://forum.ansible.com/t/apt-key-module-could-use-some-retesting/12258 "2013-01-28T20:57:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [January 28, 2013, 8:57pm UTC](https://forum.ansible.com/t/apt-key-module-could-use-some-retesting/12258/1 "2013-01-28T20:57:56Z")

</div>

I pushed some fixes to it today so it would use the standard  
module.run\_command stuff, which also required updating  
module.run\_command a little. Basic problem was it was swallowing  
errors and I needed to know what was going wrong.

It seems to work for me based on my usage.

Note -- it does work a little differently now, as it doesn't call gpg.

It should also work with $FILE('path') and the with\_file lookup  
plugin, just pass it 'data' instead of 'url'. I didn't really test  
that part 🙂

--Michael
