AHMALI-M-K035:~ ahmali$ ansible localhost -m ping
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
localhost | FAILED! => {
"failed": true,
"msg": "Unexpected failure during module execution.",
"stdout": ""
}
AHMALI-M-K035:~ ahmali$ ansible localhost -m ping -vvv
ansible 2.4.0.0
config file = None
configured module search path = [u'/Users/ahmali/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /Users/ahmali/anaconda/lib/python2.7/site-packages/ansible
executable location = /Users/ahmali/anaconda/bin/ansible
python version = 2.7.12 |Anaconda 4.2.0 (x86_64)| (default, Jul 2 2016, 17:43:17) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)]
No config file found; using defaults
Parsed /etc/ansible/hosts inventory source with ini plugin
META: ran handlers
The full traceback is:
Traceback (most recent call last):
File "/Users/ahmali/anaconda/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 88, in run
items = self._get_loop_items()
File "/Users/ahmali/anaconda/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 181, in _get_loop_items
self._play_context.update_vars(play_context_vars)
File "/Users/ahmali/anaconda/lib/python2.7/site-packages/ansible/playbook/play_context.py", line 667, in update_vars
var_val = getattr(self, prop)
File "/Users/ahmali/anaconda/lib/python2.7/site-packages/ansible/playbook/base.py", line 58, in _generic_g_method
return getattr(self, method)()
File "/Users/ahmali/anaconda/lib/python2.7/site-packages/ansible/playbook/play_context.py", line 686, in _get_attr_connection
if not check_for_controlpersist(self.ssh_executable):
File "/Users/ahmali/anaconda/lib/python2.7/site-packages/ansible/utils/ssh_functions.py", line 38, in check_for_controlpersist
cmd = subprocess.Popen([ssh_executable, '-o', 'ControlPersist'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/Users/ahmali/anaconda/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/Users/ahmali/anaconda/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
localhost | FAILED! => {
"failed": true,
"msg": "Unexpected failure during module execution.",
"stdout": ""
}
AHMALI-M-K035:~ ahmali$
AHMALI-M-K035:ansible ahmali$ ansible localhost -m ping
localhost | SUCCESS => {
"changed": false,
"failed": false,
"ping": "pong"
}
AHMALI-M-K035:ansible ahmali$
> email to ansible-project+unsubscribe@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/de08ea00-7978-4da6-9b6d-d3e54bda80bf%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/inZcQamnqkk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAPrnkaQmonNr5shZgiqg8XNQMxL7d31Q2kzYm2UHDEGOuvkp7A%40mail.gmail.com.