Created
July 2, 2016 18:47
-
-
Save todd-dsm/00c80bc57ef3d07d287d0fb9204e3565 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installed on a Mac OS X Yosemite | |
# Installed python and pip with homebrew; everything is in /usr/local so sudo is not required. | |
brew info python | |
python: stable 2.7.11 (bottled), devel 2.7.12rc1, HEAD | |
Interpreted, interactive, object-oriented programming language | |
https://www.python.org | |
/usr/local/Cellar/python/2.7.10_2 (5,046 files, 67.6M) | |
Poured from bottle on 2015-07-13 at 14:07:01 | |
/usr/local/Cellar/python/2.7.11 (5,009 files, 67.5M) * | |
Poured from bottle on 2016-01-29 at 14:44:20 | |
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/python.rb | |
which python | |
/usr/local/bin/python | |
python --version | |
Python 2.7.11 | |
So far everything seems to work. | |
pip install --upgrade ansible paramiko PyYAML Jinja2 httplib2 six passlib | |
sudo launchctl limit maxfiles unlimited | |
which pip | |
/usr/local/bin/pip | |
pip --version | |
pip 8.1.2 from /usr/local/lib/python2.7/site-packages (python 2.7) | |
$ ansible --version | |
ansible 2.1.0.0 | |
config file = /etc/ansible/ansible.cfg | |
configured module search path = Default w/o overrides | |
Modified inventory so a non-privileged ansible could access it: | |
sudo egrep -v '^(#|$)' /etc/ansible/ansible.cfg | |
[defaults] | |
inventory = /usr/local/etc/ansible/hosts | |
host_key_checking = False | |
[privilege_escalation] | |
[paramiko_connection] | |
[ssh_connection] | |
control_path = %(directory)s/ansible-ssh-%%C | |
[accelerate] | |
[selinux] | |
[colors] | |
Moved the hosts file: | |
sudo egrep -v '^(#|$)' /usr/local/etc/ansible/hosts | |
[testers] | |
slave-1.ptest.us | |
slave-2.ptest.us | |
slave-3.ptest.us | |
ansible -vvv testers -m ping | |
Using /etc/ansible/ansible.cfg as config file | |
An exception occurred during task execution. The full traceback is: | |
Traceback (most recent call last): | |
File "/usr/local/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 124, in run | |
res = self._execute() | |
File "/usr/local/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 446, in _execute | |
result = self._handler.run(task_vars=variables) | |
File "/usr/local/lib/python2.7/site-packages/ansible/plugins/action/normal.py", line 33, in run | |
results = merge_hash(results, self._execute_module(tmp=tmp, task_vars=task_vars)) | |
File "/usr/local/lib/python2.7/site-packages/ansible/plugins/action/__init__.py", line 583, in _execute_module | |
(module_style, shebang, module_data) = self._configure_module(module_name=module_name, module_args=module_args, task_vars=task_vars) | |
File "/usr/local/lib/python2.7/site-packages/ansible/plugins/action/__init__.py", line 149, in _configure_module | |
(module_data, module_style, module_shebang) = modify_module(module_name, module_path, module_args, task_vars=task_vars, module_compression=self._play_context.module_compression) | |
File "/usr/local/lib/python2.7/site-packages/ansible/executor/module_common.py", line 718, in modify_module | |
(module_data, module_style, shebang) = _find_snippet_imports(module_name, module_data, module_path, module_args, task_vars, module_compression) | |
File "/usr/local/lib/python2.7/site-packages/ansible/executor/module_common.py", line 561, in _find_snippet_imports | |
with lock: | |
AttributeError: __exit__ | |
slave-1.ptest.us | FAILED! => { | |
"failed": true, | |
"msg": "Unexpected failure during module execution.", | |
"stdout": "" | |
} | |
Suspecting permissions, tried: | |
sudo ansible testers -m ping | |
slave-1.ptest.us | UNREACHABLE! => { | |
"changed": false, | |
"msg": "Failed to connect to the host via ssh.", | |
"unreachable": true | |
} | |
slave-2.ptest.us | UNREACHABLE! => { | |
"changed": false, | |
"msg": "Failed to connect to the host via ssh.", | |
"unreachable": true | |
} | |
slave-3.ptest.us | UNREACHABLE! => { | |
"changed": false, | |
"msg": "Failed to connect to the host via ssh.", | |
"unreachable": true | |
} | |
Still failing but failing as expected. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment