Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.46 KB | None | 0 0
  1. % bash
  2. [wayne@view ~/Ansible_virt]$ virtualenv .test2
  3. New python executable in /usr/home/wayne/Ansible_virt/.test2/bin/python2.7
  4. Also creating executable in /usr/home/wayne/Ansible_virt/.test2/bin/python
  5. Installing setuptools, pip, wheel...
  6. done.
  7. [wayne@view ~/Ansible_virt]$ source .test2/bin/activate
  8. (.test2) [wayne@view ~/Ansible_virt]$ pip install ansible
  9. [wayne@view ~/Ansible_virt]$ source .test2/bin/activate
  10. (.test2) [wayne@view ~/Ansible_virt]$ pip install ansible
  11. 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
  12. pport for Python 2.7.
  13. Collecting ansible
  14. Collecting jinja2 (from ansible)
  15. Using cached https://files.pythonhosted.org/packages/1d/e7/fd8b501e7a6dfe492a433deb7b9d833d39ca74916fa8bc63dd1a4947a671/Jinja2-2.10.1-py2.py3-none-any.whl
  16. Requirement already satisfied: setuptools in ./.test2/lib/python2.7/site-packages (from ansible) (41.0.1)
  17. Collecting PyYAML (from ansible)
  18. Collecting cryptography (from ansible)
  19. Collecting paramiko (from ansible)
  20. Using cached https://files.pythonhosted.org/packages/cf/ae/94e70d49044ccc234bfdba20114fa947d7ba6eb68a2e452d89b920e62227/paramiko-2.4.2-py2.py3-none-any.whl
  21. Collecting MarkupSafe>=0.23 (from jinja2->ansible)
  22. Collecting enum34; python_version < "3" (from cryptography->ansible)
  23. Using cached https://files.pythonhosted.org/packages/c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050/enum34-1.1.6-py2-none-any.whl
  24. Collecting asn1crypto>=0.21.0 (from cryptography->ansible)
  25. Using cached https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl
  26. Collecting ipaddress; python_version < "3" (from cryptography->ansible)
  27. Using cached https://files.pythonhosted.org/packages/fc/d0/7fc3a811e011d4b388be48a0e381db8d990042df54aa4ef4599a31d39853/ipaddress-1.0.22-py2.py3-none-any.whl
  28. Collecting six>=1.4.1 (from cryptography->ansible)
  29. Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
  30. Collecting cffi!=1.11.3,>=1.8 (from cryptography->ansible)
  31. Collecting pynacl>=1.0.1 (from paramiko->ansible)
  32. Collecting bcrypt>=3.1.3 (from paramiko->ansible)
  33. Collecting pyasn1>=0.1.7 (from paramiko->ansible)
  34. Using cached https://files.pythonhosted.org/packages/7b/7c/c9386b82a25115cccf1903441bba3cbadcfae7b678a20167347fa8ded34c/pyasn1-0.4.5-py2.py3-none-any.whl
  35. Collecting pycparser (from cffi!=1.11.3,>=1.8->cryptography->ansible)
  36. Installing collected packages: MarkupSafe, jinja2, PyYAML, enum34, asn1crypto, ipaddress, six, pycparser, cffi, cryptography, pynacl, bcrypt, pyasn1, paramiko, ansible
  37. 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
  38. n1-0.4.5 pycparser-2.19 pynacl-1.3.0 six-1.12.0
  39. (.test2) [wayne@view ~/Ansible_virt]$ make init
  40. ansible-playbook -i ./hosts --ask-become-pass mseninit.yml
  41. SUDO password:
  42.  
  43. PLAY [jails] **********************************************************************************************************************************************************************************
  44.  
  45. TASK [Gathering Facts] ************************************************************************************************************************************************************************
  46. 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 \"/
  47. 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
  48. 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
  49. 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\",
  50. 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
  51. 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
  52. /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>
  53. \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_
  54. 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
  55. 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.
  56. 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}
  57. to retry, use: --limit @/usr/home/wayne/Ansible_virt/mseninit.retry
  58.  
  59. PLAY RECAP ************************************************************************************************************************************************************************************
  60. 198.11.63.145 : ok=0 changed=0 unreachable=0 failed=1
  61.  
  62. *** Error code 2
  63.  
  64. Stop.
  65. make: stopped in /usr/home/wayne/Ansible_virt
  66. (.test2) [wayne@view ~/Ansible_virt]$ exit
  67. exit
  68. wayne@view:~/Ansible_virt % make init
  69. ansible-playbook -i ./hosts --ask-become-pass mseninit.yml
  70. SUDO password:
  71.  
  72. PLAY [jails] **********************************************************************************************************************************************************************************
  73.  
  74. TASK [Gathering Facts] ************************************************************************************************************************************************************************
  75. ok: [198.11.63.145]
  76.  
  77. TASK [Insure group msen exists] ***************************************************************************************************************************************************************
  78. ok: [198.11.63.145]
  79.  
  80. TASK [Add user "msenadm" to the server] *******************************************************************************************************************************************************
  81. ok: [198.11.63.145]
  82.  
  83. TASK [Add user "msen" to the server] **********************************************************************************************************************************************************
  84. ok: [198.11.63.145]
  85.  
  86. PLAY RECAP ************************************************************************************************************************************************************************************
  87. 198.11.63.145 : ok=4 changed=0 unreachable=0 failed=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement