Le 24/12/2018 à 02:07, Harlan Lieberman-Berg a écrit : > On Sat, Dec 22, 2018 at 4:06 PM Yvan Masson <y...@masson-informatique.fr> > wrote: >> Using testing, Ansible crashes when trying to read vault variables. I >> see this issue since Ansible 2.6 at least. > > Interesting! Can you try to reproduce this with `LC_ALL=C LANG=C` ? > > Also, do you get the same error when you run the command without the > verbosity flags? That error appears to be a unicode string problem > related to some debug output. > Output is similar without the verbosity flags. However, running it with `LC_ALL=C LANG=C` was a very good idea:
ERROR! Unexpected Exception, this is probably a bug: 'ascii' codec can't encode character u'\xe9' in position 24: ordinal not in range(128) the full traceback was: Traceback (most recent call last): File "/usr/bin/ansible-playbook", line 118, in <module> exit_code = cli.run() File "/usr/lib/python2.7/dist-packages/ansible/cli/playbook.py", line 122, in run results = pbex.run() File "/usr/lib/python2.7/dist-packages/ansible/executor/playbook_executor.py", line 81, in run pb = Playbook.load(playbook_path, variable_manager=self._variable_manager, loader=self._loader) File "/usr/lib/python2.7/dist-packages/ansible/playbook/__init__.py", line 54, in load pb._load_playbook_data(file_name=file_name, variable_manager=variable_manager) File "/usr/lib/python2.7/dist-packages/ansible/playbook/__init__.py", line 74, in _load_playbook_data if os.path.isdir(plugin_path): File "/usr/lib/python2.7/genericpath.py", line 49, in isdir st = os.stat(s) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 24: ordinal not in range(128) The isdir() function gave me a hint: my playbook and other files are in a path that contains character "é". I moved it to a path with only ASCII chars and it fixed the issue. I am very surprised this type of issue still exist in popular software like Ansible! I could not find a corresponding bug report upstream: would you like me to report this issue upstream? Regards, Yvan
signature.asc
Description: OpenPGP digital signature