This looks to be an issue in BashOnWindows and not ansible or ansible-vault.

 See:

   https://github.com/Microsoft/BashOnWindows/issues/286

https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/13904454-mprotect-prot-growsdown-support



On Sat, Aug 5, 2017 at 2:55 PM, William McKenzie <[email protected]>
wrote:

> Anybody using vault with windows linux subsystem?
>
> I get this if I try to do anything requiring the vault:. I've down apt-get
> update and upgrade. openssl is 1.0.2g.
>
> c1rpc@LOUIS:~/cartewright$ ansible-playbook -i inventory
> check_inventory.yml -vvv
> No config file found; using defaults
> ERROR! Unexpected Exception: /home/c1rpc/.local/lib/
> python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so: cannot
> enable executable stack as shared object requires: Invalid argument
> the full traceback was:
>
> Traceback (most recent call last):
>   File "/home/c1rpc/.local/bin/ansible-playbook", line 109, in <module>
>     exit_code = cli.run()
>   File 
> "/home/c1rpc/.local/lib/python2.7/site-packages/ansible/cli/playbook.py",
> line 128, in run
>     inventory = Inventory(loader=loader, variable_manager=variable_manager,
> host_list=self.options.inventory)
>   File "/home/c1rpc/.local/lib/python2.7/site-packages/
> ansible/inventory/__init__.py", line 98, in __init__
>     self.parse_inventory(host_list)
>   File "/home/c1rpc/.local/lib/python2.7/site-packages/
> ansible/inventory/__init__.py", line 170, in parse_inventory
>     group.vars = combine_vars(group.vars, self.get_group_variables(group
> .name))
>   File "/home/c1rpc/.local/lib/python2.7/site-packages/
> ansible/inventory/__init__.py", line 575, in get_group_variables
>     self._vars_per_group[groupname] = self._get_group_variables(groupname,
> vault_password=vault_password)
>   File "/home/c1rpc/.local/lib/python2.7/site-packages/
> ansible/inventory/__init__.py", line 593, in _get_group_variables
>     vars = combine_vars(vars, self.get_group_vars(group))
>   File "/home/c1rpc/.local/lib/python2.7/site-packages/
> ansible/inventory/__init__.py", line 795, in get_group_vars
>     return self._get_hostgroup_vars(host=None, group=group,
> new_pb_basedir=new_pb_basedir, return_results=return_results)
>   File "/home/c1rpc/.local/lib/python2.7/site-packages/
> ansible/inventory/__init__.py", line 859, in _get_hostgroup_vars
>     host_results = self._variable_manager.add_group_vars_file(base_path,
> self._loader)
>   File 
> "/home/c1rpc/.local/lib/python2.7/site-packages/ansible/vars/__init__.py",
> line 639, in add_group_vars_file
>     data = self._load_inventory_file(path, loader)
>   File 
> "/home/c1rpc/.local/lib/python2.7/site-packages/ansible/vars/__init__.py",
> line 570, in _load_inventory_file
>     results = self._load_inventory_file(path=p, loader=loader,
> filter_ext=True)
>   File 
> "/home/c1rpc/.local/lib/python2.7/site-packages/ansible/vars/__init__.py",
> line 579, in _load_inventory_file
>     data = loader.load_from_file(path)
>   File "/home/c1rpc/.local/lib/python2.7/site-packages/
> ansible/parsing/dataloader.py", line 118, in load_from_file
>     (b_file_data, show_content) = self._get_file_contents(file_name)
>   File "/home/c1rpc/.local/lib/python2.7/site-packages/
> ansible/parsing/dataloader.py", line 179, in _get_file_contents
>     data = self._vault.decrypt(data, filename=b_file_name)
>   File "/home/c1rpc/.local/lib/python2.7/site-packages/
> ansible/parsing/vault/__init__.py", line 246, in decrypt
>     b_plaintext = this_cipher.decrypt(b_vaulttext, self.b_password)
>   File "/home/c1rpc/.local/lib/python2.7/site-packages/
> ansible/parsing/vault/__init__.py", line 783, in decrypt
>     b_key1, b_key2, b_iv = self._gen_key_initctr(b_password, b_salt)
>   File "/home/c1rpc/.local/lib/python2.7/site-packages/
> ansible/parsing/vault/__init__.py", line 729, in _gen_key_initctr
>     backend = default_backend()
>   File "/home/c1rpc/.local/lib/python2.7/site-packages/
> cryptography/hazmat/backends/__init__.py", line 15, in default_backend
>     from cryptography.hazmat.backends.openssl.backend import backend
>   File "/home/c1rpc/.local/lib/python2.7/site-packages/
> cryptography/hazmat/backends/openssl/__init__.py", line 7, in <module>
>     from cryptography.hazmat.backends.openssl.backend import backend
>   File "/home/c1rpc/.local/lib/python2.7/site-packages/
> cryptography/hazmat/backends/openssl/backend.py", line 53, in <module>
>     from cryptography.hazmat.bindings.openssl import binding
>   File "/home/c1rpc/.local/lib/python2.7/site-packages/
> cryptography/hazmat/bindings/openssl/binding.py", line 13, in <module>
>     from cryptography.hazmat.bindings._openssl import ffi, lib
> ImportError: /home/c1rpc/.local/lib/python2.7/site-packages/
> cryptography/hazmat/bindings/_openssl.so: cannot enable executable stack
> as shared object requires: Invalid argument
> c1rpc@LOUIS:~/cartewright$
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/ansible-project/4b9b22d6-5fe7-4d26-9f48-cf35a5690ec9%40googlegroups.
> com
> <https://groups.google.com/d/msgid/ansible-project/4b9b22d6-5fe7-4d26-9f48-cf35a5690ec9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAOJNLf896bFzs8eZeDw%3D%2BaL8hN%3DOB%3D9_%2BPboUq9%3DAvnztxWsQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to