Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % bash
- [wayne@view ~/Ansible_virt]$ virtualenv .test2
- New python executable in /usr/home/wayne/Ansible_virt/.test2/bin/python2.7
- Also creating executable in /usr/home/wayne/Ansible_virt/.test2/bin/python
- Installing setuptools, pip, wheel...
- done.
- [wayne@view ~/Ansible_virt]$ source .test2/bin/activate
- (.test2) [wayne@view ~/Ansible_virt]$ pip install ansible
- [wayne@view ~/Ansible_virt]$ source .test2/bin/activate
- (.test2) [wayne@view ~/Ansible_virt]$ pip install ansible
- DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop su
- pport for Python 2.7.
- Collecting ansible
- Collecting jinja2 (from ansible)
- Using cached https://files.pythonhosted.org/packages/1d/e7/fd8b501e7a6dfe492a433deb7b9d833d39ca74916fa8bc63dd1a4947a671/Jinja2-2.10.1-py2.py3-none-any.whl
- Requirement already satisfied: setuptools in ./.test2/lib/python2.7/site-packages (from ansible) (41.0.1)
- Collecting PyYAML (from ansible)
- Collecting cryptography (from ansible)
- Collecting paramiko (from ansible)
- Using cached https://files.pythonhosted.org/packages/cf/ae/94e70d49044ccc234bfdba20114fa947d7ba6eb68a2e452d89b920e62227/paramiko-2.4.2-py2.py3-none-any.whl
- Collecting MarkupSafe>=0.23 (from jinja2->ansible)
- Collecting enum34; python_version < "3" (from cryptography->ansible)
- Using cached https://files.pythonhosted.org/packages/c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050/enum34-1.1.6-py2-none-any.whl
- Collecting asn1crypto>=0.21.0 (from cryptography->ansible)
- Using cached https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl
- Collecting ipaddress; python_version < "3" (from cryptography->ansible)
- Using cached https://files.pythonhosted.org/packages/fc/d0/7fc3a811e011d4b388be48a0e381db8d990042df54aa4ef4599a31d39853/ipaddress-1.0.22-py2.py3-none-any.whl
- Collecting six>=1.4.1 (from cryptography->ansible)
- Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
- Collecting cffi!=1.11.3,>=1.8 (from cryptography->ansible)
- Collecting pynacl>=1.0.1 (from paramiko->ansible)
- Collecting bcrypt>=3.1.3 (from paramiko->ansible)
- Collecting pyasn1>=0.1.7 (from paramiko->ansible)
- Using cached https://files.pythonhosted.org/packages/7b/7c/c9386b82a25115cccf1903441bba3cbadcfae7b678a20167347fa8ded34c/pyasn1-0.4.5-py2.py3-none-any.whl
- Collecting pycparser (from cffi!=1.11.3,>=1.8->cryptography->ansible)
- Installing collected packages: MarkupSafe, jinja2, PyYAML, enum34, asn1crypto, ipaddress, six, pycparser, cffi, cryptography, pynacl, bcrypt, pyasn1, paramiko, ansible
- Successfully installed MarkupSafe-1.1.1 PyYAML-5.1 ansible-2.7.10 asn1crypto-0.24.0 bcrypt-3.1.6 cffi-1.12.3 cryptography-2.6.1 enum34-1.1.6 ipaddress-1.0.22 jinja2-2.10.1 paramiko-2.4.2 pyas
- n1-0.4.5 pycparser-2.19 pynacl-1.3.0 six-1.12.0
- (.test2) [wayne@view ~/Ansible_virt]$ make init
- ansible-playbook -i ./hosts --ask-become-pass mseninit.yml
- SUDO password:
- PLAY [jails] **********************************************************************************************************************************************************************************
- TASK [Gathering Facts] ************************************************************************************************************************************************************************
- fatal: [198.11.63.145]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 198.11.63.145 closed.\r\n", "module_stdout": "\r\nTraceback (most recent call last):\r\n File \"/
- home/wayne/.ansible/tmp/ansible-tmp-1556152470.08-165771039346553/AnsiballZ_setup.py\", line 113, in <module>\r\n _ansiballz_main()\r\n File \"/home/wayne/.ansible/tmp/ansible-tmp-1556152
- 470.08-165771039346553/AnsiballZ_setup.py\", line 105, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/home/wayne/.ansible/tmp/ansible-tmp-155615
- 2470.08-165771039346553/AnsiballZ_setup.py\", line 48, in invoke_module\r\n imp.load_module('__main__', mod, module, MOD_DESC)\r\n File \"/tmp/ansible_setup_payload_QRJvaJ/__main__.py\",
- line 134, in <module>\r\n File \"/tmp/ansible_setup_payload_QRJvaJ/ansible_setup_payload.zip/ansible/module_utils/facts/__init__.py\", line 34, in <module>\r\n File \"/tmp/ansible_setup_pay
- load_QRJvaJ/ansible_setup_payload.zip/ansible/module_utils/facts/compat.py\", line 33, in <module>\r\n File \"/tmp/ansible_setup_payload_QRJvaJ/ansible_setup_payload.zip/ansible/module_utils
- /facts/default_collectors.py\", line 32, in <module>\r\n File \"/tmp/ansible_setup_payload_QRJvaJ/ansible_setup_payload.zip/ansible/module_utils/facts/other/facter.py\", line 23, in <module>
- \r\n File \"/tmp/ansible_setup_payload_QRJvaJ/ansible_setup_payload.zip/ansible/module_utils/facts/collector.py\", line 36, in <module>\r\n File \"/tmp/ansible_setup_payload_QRJvaJ/ansible_
- setup_payload.zip/ansible/module_utils/facts/timeout.py\", line 19, in <module>\r\n File \"/usr/local/lib/python2.7/multiprocessing/__init__.py\", line 65, in <module>\r\n from multiproce
- ssing.util import SUBDEBUG, SUBWARNING\r\n File \"/usr/local/lib/python2.7/multiprocessing/util.py\", line 37, in <module>\r\n import weakref\r\n File \"/usr/local/lib/python2.7/weakref.
- py\", line 14, in <module>\r\n from _weakref import (\r\nImportError: cannot import name _remove_dead_weakref\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
- to retry, use: --limit @/usr/home/wayne/Ansible_virt/mseninit.retry
- PLAY RECAP ************************************************************************************************************************************************************************************
- 198.11.63.145 : ok=0 changed=0 unreachable=0 failed=1
- *** Error code 2
- Stop.
- make: stopped in /usr/home/wayne/Ansible_virt
- (.test2) [wayne@view ~/Ansible_virt]$ exit
- exit
- wayne@view:~/Ansible_virt % make init
- ansible-playbook -i ./hosts --ask-become-pass mseninit.yml
- SUDO password:
- PLAY [jails] **********************************************************************************************************************************************************************************
- TASK [Gathering Facts] ************************************************************************************************************************************************************************
- ok: [198.11.63.145]
- TASK [Insure group msen exists] ***************************************************************************************************************************************************************
- ok: [198.11.63.145]
- TASK [Add user "msenadm" to the server] *******************************************************************************************************************************************************
- ok: [198.11.63.145]
- TASK [Add user "msen" to the server] **********************************************************************************************************************************************************
- ok: [198.11.63.145]
- PLAY RECAP ************************************************************************************************************************************************************************************
- 198.11.63.145 : ok=4 changed=0 unreachable=0 failed=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement