ansible-vault create test.ymlUnexpected Exception: integer division or modulo by zeroUnexpected Exception: integer division or modulo by zero
the full traceback was:
Traceback (most recent call last):
File "/Users/VictorSK/ansible/bin/ansible-vault", line 85, in <module>
sys.exit(cli.run())
File "/Users/VictorSK/ansible/lib/ansible/cli/vault.py", line 119, in run
self.execute()
File "/Users/VictorSK/ansible/lib/ansible/cli/__init__.py", line 99, in execute
fn()
File "/Users/VictorSK/ansible/lib/ansible/cli/vault.py", line 151, in execute_create
self.editor.create_file(self.args[0])
File "/Users/VictorSK/ansible/lib/ansible/parsing/vault/__init__.py", line 341, in create_file
self._edit_file_helper(filename)
File "/Users/VictorSK/ansible/lib/ansible/parsing/vault/__init__.py", line 298, in _edit_file_helper
self._shred_file(tmp_path)
File "/Users/VictorSK/ansible/lib/ansible/parsing/vault/__init__.py", line 281, in _shred_file
self._shred_file_custom(tmp_path)
File "/Users/VictorSK/ansible/lib/ansible/parsing/vault/__init__.py", line 248, in _shred_file_custom
for _ in range(0, file_len // chunk_len):
ZeroDivisionError: integer division or modulo by zeroERROR! Unexpected Exception: [Errno 2] No such file or directory
the full traceback was:
Traceback (most recent call last):
File "/Users/VictorSK/ansible/bin/ansible-vault", line 85, in <module>
sys.exit(cli.run())
File "/Users/VictorSK/ansible/lib/ansible/cli/vault.py", line 119, in run
self.execute()
File "/Users/VictorSK/ansible/lib/ansible/cli/__init__.py", line 99, in execute
fn()
File "/Users/VictorSK/ansible/lib/ansible/cli/vault.py", line 151, in execute_create
self.editor.create_file(self.args[0])
File "/Users/VictorSK/ansible/lib/ansible/parsing/vault/__init__.py", line 344, in create_file
self._edit_file_helper(filename)
File "/Users/VictorSK/ansible/lib/ansible/parsing/vault/__init__.py", line 298, in _edit_file_helper
call(self._editor_shell_command(tmp_path))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directorylocal ...pment/Ansible_Playbooks/server_lepr/vars(master) $ ls -an
total 0
drwxr-xr-x 2 501 20 68 Jan 21 11:07 .
drwxr-xr-x 9 501 20 306 Jan 21 10:56 ..
local ...pment/Ansible_Playbooks/server_lepr/vars(master) $ ansible-vault create victor.yml -vvvv
No config file found; using defaults
New Vault password:
Confirm New Vault password:
ERROR! Unexpected Exception: [Errno 2] No such file or directory
the full traceback was:
Traceback (most recent call last):
File "/Users/VictorSK/ansible/bin/ansible-vault", line 85, in <module>
sys.exit(cli.run())
File "/Users/VictorSK/ansible/lib/ansible/cli/vault.py", line 119, in run
self.execute()
File "/Users/VictorSK/ansible/lib/ansible/cli/__init__.py", line 99, in execute
fn()
File "/Users/VictorSK/ansible/lib/ansible/cli/vault.py", line 151, in execute_create
self.editor.create_file(self.args[0])
File "/Users/VictorSK/ansible/lib/ansible/parsing/vault/__init__.py", line 344, in create_file
self._edit_file_helper(filename)
File "/Users/VictorSK/ansible/lib/ansible/parsing/vault/__init__.py", line 298, in _edit_file_helper
call(self._editor_shell_command(tmp_path))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
local ...pment/Ansible_Playbooks/server_lepr/vars(master) $ To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e08236ce-43d2-41de-b6b2-52be0218fa63%40googlegroups.com.
ansible-vault create filename.ymlansible-vault encrypt filename.ymlTo view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4f0c9ff0-b0ce-495a-ba70-3e67a7ccb776%40googlegroups.com.