mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
add error message if keyczar is not installed and the user tries to use fireball mode
This commit is contained in:
parent
d5db8e937e
commit
556799a7c4
1 changed files with 3 additions and 0 deletions
|
@ -72,6 +72,9 @@ def key_for_hostname(hostname):
|
||||||
# fireball mode is an implementation of ansible firing up zeromq via SSH
|
# fireball mode is an implementation of ansible firing up zeromq via SSH
|
||||||
# to use no persistent daemons or key management
|
# to use no persistent daemons or key management
|
||||||
|
|
||||||
|
if not KEYCZAR_AVAILABLE:
|
||||||
|
raise errors.AnsibleError("python-keyczar must be installed to use fireball mode")
|
||||||
|
|
||||||
key_path = os.path.expanduser("~/.fireball.keys")
|
key_path = os.path.expanduser("~/.fireball.keys")
|
||||||
if not os.path.exists(key_path):
|
if not os.path.exists(key_path):
|
||||||
os.makedirs(key_path)
|
os.makedirs(key_path)
|
||||||
|
|
Loading…
Reference in a new issue