mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-28 11:59:09 -07:00
allow apt-key module to work with binary key
This commit is contained in:
parent
edb6a683f3
commit
94e66ef558
2 changed files with 4 additions and 3 deletions
|
@ -112,7 +112,7 @@ def download_key(module, url):
|
|||
|
||||
def add_key(module, key):
|
||||
cmd = "apt-key add -"
|
||||
(rc, out, err) = module.run_command(cmd, data=key, check_rc=True)
|
||||
(rc, out, err) = module.run_command(cmd, data=key, check_rc=True, binary_data=True)
|
||||
return True
|
||||
|
||||
def remove_key(module, key_id):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue