mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Merge pull request #3162 from strawlab/apt-key-binary-fix
allow apt-key module to work with binary key
This commit is contained in:
@@ -123,7 +123,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):
|
||||
|
||||
Reference in New Issue
Block a user