Advertisement
Guest User

#49667_2.4.2

a guest
Dec 12th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 14.34 KB | None | 0 0
  1. tdaigle@devserver ~/git/tdaigle-funct_tests (tdaigle-ntp_funct_tests) $ ansible-playbook testing-playbook-save_when.yml -e 'nethosts=nethost123'  -vvvv
  2. ansible-playbook 2.4.2.0
  3.   config file = /home/myusername/git/myusername-funct_tests/ansible.cfg
  4.   configured module search path = [u'/usr/share/ansible', u'/etc/ansible/roles/Juniper.junos/library']
  5.   ansible python module location = /usr/lib/python2.7/site-packages/ansible
  6.   executable location = /bin/ansible-playbook
  7.   python version = 2.7.5 (default, Sep  5 2016, 02:30:38) [GCC 4.8.5 20150623 (Red Hat 4.8.5-9)]
  8. Using /home/myusername/git/myusername-funct_tests/ansible.cfg as config file
  9. setting up inventory plugins
  10. Parsed /home/myusername/git/myusername-funct_tests/inventory/emds-inventory inventory source with script plugin
  11. [DEPRECATION WARNING]: 'include' for playbook includes. You should use 'import_playbook' instead. This feature will be removed in version 2.8. Deprecation warnings
  12. can be disabled by setting deprecation_warnings=False in ansible.cfg.
  13. [DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use 'import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions. This
  14. feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
  15. [DEPRECATION WARNING]: include is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this
  16. rationale.. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
  17. statically imported: /home/myusername/git/myusername-funct_tests/roles/save/tasks/nx-os-save_when.yml
  18. statically imported: /home/myusername/git/myusername-funct_tests/roles/save/tasks/ios-save_when.yml
  19. statically imported: /home/myusername/git/myusername-funct_tests/roles/save/tasks/eos-save_when.yml
  20. Loading callback plugin skippy of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc
  21. Loading callback plugin auditlog2 of type notification, v2.1 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc
  22. Loading callback plugin unnamed of type old, v1.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc
  23. Loading callback plugin unnamed of type old, v1.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc
  24.  
  25. PLAYBOOK: testing-playbook-save_when.yml *****************************************************************************************************************************
  26.  
  27. 2 plays in testing-playbook-save_when.yml
  28. Device username (press Enter: default to Unix username):
  29. Device password:
  30.  
  31. PLAY [Get credentials interactively] *********************************************************************************************************************************
  32.  
  33. META: ran handlers
  34.  
  35. TASK [Set up auth facts] *********************************************************************************************************************************************
  36.  
  37. task path: /home/myusername/git/myusername-funct_tests/include-passprompt.yml:20
  38. ok: [nethost123] => {
  39.     "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result"
  40. }
  41.  
  42. TASK [debug] *********************************************************************************************************************************************************
  43.  
  44. task path: /home/myusername/git/myusername-funct_tests/include-passprompt.yml:25
  45. ok: [nethost123] => {
  46.     "msg": "Will attempt connection as user 'myusername'"
  47. }
  48. META: ran handlers
  49. META: ran handlers
  50.  
  51. PLAY [Functional Testing Playbook for save_when] *********************************************************************************************************************
  52.  
  53. META: ran handlers
  54.  
  55. TASK [_creds : Credentials arguments] ********************************************************************************************************************************
  56.  
  57. task path: /home/myusername/git/myusername-funct_tests/roles/_creds/tasks/main.yml:6
  58. included: /home/myusername/git/myusername-funct_tests/roles/_creds/tasks/nx-os-api.yml for nethost123
  59.  
  60. TASK [_creds : Default transport cli] ********************************************************************************************************************************
  61.  
  62. task path: /home/myusername/git/myusername-funct_tests/roles/_creds/tasks/nx-os-api.yml:6
  63. ok: [nethost123] => {
  64.     "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result"
  65. }
  66.  
  67. TASK [base : Extra verification if running on ALL hosts] *************************************************************************************************************
  68.  
  69. task path: /home/myusername/git/myusername-funct_tests/roles/base/tasks/main.yml:6
  70.  
  71. TASK [NX-OS Save Config (nx-os config)] ******************************************************************************************************************************
  72.  
  73. task path: /home/myusername/git/myusername-funct_tests/roles/save/tasks/nx-os-save_when.yml:6
  74. <nethost123> connection transport is cli
  75. <nethost123> using connection plugin network_cli
  76. <nethost123> socket_path: /home/myusername/.ansible/pc/5ecd1ee54c
  77. Using module file /usr/lib/python2.7/site-packages/ansible/modules/network/nxos/nxos_config.py
  78. <nethost123> ESTABLISH LOCAL CONNECTION FOR USER: myusername
  79. <nethost123> EXEC /bin/sh -c 'echo ~ && sleep 0'
  80. <nethost123> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/myusername/.ansible/tmp/ansible-tmp-1544628613.54-158418827935242 `" && echo ansible-tmp-1544628613.54-158418827935242="` echo /home/myusername/.ansible/tmp/ansible-tmp-1544628613.54-158418827935242 `" ) && sleep 0'
  81. <nethost123> PUT /tmp/tmpEfGnkk TO /home/myusername/.ansible/tmp/ansible-tmp-1544628613.54-158418827935242/nxos_config.py
  82. <nethost123> EXEC /bin/sh -c 'chmod u+x /home/myusername/.ansible/tmp/ansible-tmp-1544628613.54-158418827935242/ /home/myusername/.ansible/tmp/ansible-tmp-1544628613.54-158418827935242/nxos_config.py && sleep 0'
  83. <nethost123> EXEC /bin/sh -c '/usr/bin/python /home/myusername/.ansible/tmp/ansible-tmp-1544628613.54-158418827935242/nxos_config.py; rm -rf "/home/myusername/.ansible/tmp/ansible-tmp-1544628613.54-158418827935242/" > /dev/null 2>&1 && sleep 0'
  84.  [WARNING]: argument timeout has been deprecated and will be removed in a future version
  85.  
  86. changed: [nethost123] => {
  87.     "changed": true,
  88.     "invocation": {
  89.         "module_args": {
  90.             "after": null,
  91.             "backup": false,
  92.             "before": null,
  93.             "defaults": false,
  94.             "diff_against": null,
  95.             "diff_ignore_lines": null,
  96.             "force": false,
  97.             "host": "nethost123",
  98.             "intended_config": null,
  99.             "lines": null,
  100.             "match": "line",
  101.             "parents": null,
  102.             "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
  103.             "port": 22,
  104.             "provider": {
  105.                 "host": "nethost123",
  106.                 "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
  107.                 "port": 22,
  108.                 "ssh_keyfile": null,
  109.                 "timeout": 300,
  110.                 "transport": "cli",
  111.                 "use_ssl": null,
  112.                 "username": "myusername",
  113.                 "validate_certs": null
  114.             },
  115.             "replace": "line",
  116.             "running_config": null,
  117.             "save": false,
  118.             "save_when": "modified",
  119.             "src": null,
  120.             "ssh_keyfile": null,
  121.             "timeout": 300,
  122.             "transport": "cli",
  123.             "use_ssl": null,
  124.             "username": "myusername",
  125.             "validate_certs": null
  126.         }
  127.     }
  128. }
  129.  
  130. TASK [Save Config] ***************************************************************************************************************************************************
  131.  
  132. task path: /home/myusername/git/myusername-funct_tests/roles/save/tasks/ios-save_when.yml:6
  133. <nethost123> connection transport is cli
  134. <nethost123> using connection plugin network_cli
  135. <nethost123> socket_path: /home/myusername/.ansible/pc/5ecd1ee54c
  136. Using module file /usr/lib/python2.7/site-packages/ansible/modules/network/eos/eos_config.py
  137. <nethost123> ESTABLISH LOCAL CONNECTION FOR USER: myusername
  138. <nethost123> EXEC /bin/sh -c 'echo ~ && sleep 0'
  139. <nethost123> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/myusername/.ansible/tmp/ansible-tmp-1544628646.55-120121515276485 `" && echo ansible-tmp-1544628646.55-120121515276485="` echo /home/myusername/.ansible/tmp/ansible-tmp-1544628646.55-120121515276485 `" ) && sleep 0'
  140. <nethost123> PUT /tmp/tmpLV1sjX TO /home/myusername/.ansible/tmp/ansible-tmp-1544628646.55-120121515276485/eos_config.py
  141. <nethost123> EXEC /bin/sh -c 'chmod u+x /home/myusername/.ansible/tmp/ansible-tmp-1544628646.55-120121515276485/ /home/myusername/.ansible/tmp/ansible-tmp-1544628646.55-120121515276485/eos_config.py && sleep 0'
  142. <nethost123> EXEC /bin/sh -c '/usr/bin/python /home/myusername/.ansible/tmp/ansible-tmp-1544628646.55-120121515276485/eos_config.py; rm -rf "/home/myusername/.ansible/tmp/ansible-tmp-1544628646.55-120121515276485/" > /dev/null 2>&1 && sleep 0'
  143. ok: [nethost123] => {
  144.     "changed": false,
  145.     "invocation": {
  146.         "module_args": {
  147.             "after": null,
  148.             "auth_pass": null,
  149.             "authorize": null,
  150.             "backup": false,
  151.             "before": null,
  152.             "defaults": false,
  153.             "diff_against": "session",
  154.             "diff_ignore_lines": null,
  155.             "force": false,
  156.             "host": null,
  157.             "intended_config": null,
  158.             "lines": null,
  159.             "match": "line",
  160.             "parents": null,
  161.             "password": null,
  162.             "port": null,
  163.             "provider": {
  164.                 "auth_pass": null,
  165.                 "authorize": null,
  166.                 "host": "nethost123",
  167.                 "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
  168.                 "port": 22,
  169.                 "ssh_keyfile": null,
  170.                 "timeout": 300,
  171.                 "transport": "cli",
  172.                 "use_ssl": null,
  173.                 "username": "myusername",
  174.                 "validate_certs": null
  175.             },
  176.             "replace": "line",
  177.             "running_config": null,
  178.             "save": false,
  179.             "save_when": "never",
  180.             "src": null,
  181.             "ssh_keyfile": null,
  182.             "timeout": null,
  183.             "transport": "cli",
  184.             "use_ssl": true,
  185.             "username": null,
  186.             "validate_certs": true
  187.         }
  188.     }
  189. }
  190.  
  191. TASK [Save Config] ***************************************************************************************************************************************************
  192.  
  193. task path: /home/myusername/git/myusername-funct_tests/roles/save/tasks/eos-save_when.yml:6
  194. <nethost123> connection transport is cli
  195. <nethost123> using connection plugin network_cli
  196. <nethost123> socket_path: /home/myusername/.ansible/pc/5ecd1ee54c
  197. Using module file /usr/lib/python2.7/site-packages/ansible/modules/network/eos/eos_config.py
  198. <nethost123> ESTABLISH LOCAL CONNECTION FOR USER: myusername
  199. <nethost123> EXEC /bin/sh -c 'echo ~ && sleep 0'
  200. <nethost123> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/myusername/.ansible/tmp/ansible-tmp-1544628648.64-121184222265167 `" && echo ansible-tmp-1544628648.64-121184222265167="` echo /home/myusername/.ansible/tmp/ansible-tmp-1544628648.64-121184222265167 `" ) && sleep 0'
  201. <nethost123> PUT /tmp/tmpR2Qvc8 TO /home/myusername/.ansible/tmp/ansible-tmp-1544628648.64-121184222265167/eos_config.py
  202. <nethost123> EXEC /bin/sh -c 'chmod u+x /home/myusername/.ansible/tmp/ansible-tmp-1544628648.64-121184222265167/ /home/myusername/.ansible/tmp/ansible-tmp-1544628648.64-121184222265167/eos_config.py && sleep 0'
  203. <nethost123> EXEC /bin/sh -c '/usr/bin/python /home/myusername/.ansible/tmp/ansible-tmp-1544628648.64-121184222265167/eos_config.py; rm -rf "/home/myusername/.ansible/tmp/ansible-tmp-1544628648.64-121184222265167/" > /dev/null 2>&1 && sleep 0'
  204. ok: [nethost123] => {
  205.     "changed": false,
  206.     "invocation": {
  207.         "module_args": {
  208.             "after": null,
  209.             "auth_pass": null,
  210.             "authorize": null,
  211.             "backup": false,
  212.             "before": null,
  213.             "defaults": false,
  214.             "diff_against": "session",
  215.             "diff_ignore_lines": null,
  216.             "force": false,
  217.             "host": null,
  218.             "intended_config": null,
  219.             "lines": null,
  220.             "match": "line",
  221.             "parents": null,
  222.             "password": null,
  223.             "port": null,
  224.             "provider": {
  225.                 "auth_pass": null,
  226.                 "authorize": null,
  227.                 "host": "nethost123",
  228.                 "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
  229.                 "port": 22,
  230.                 "ssh_keyfile": null,
  231.                 "timeout": 300,
  232.                 "transport": "cli",
  233.                 "use_ssl": null,
  234.                 "username": "myusername",
  235.                 "validate_certs": null
  236.             },
  237.             "replace": "line",
  238.             "running_config": null,
  239.             "save": false,
  240.             "save_when": "never",
  241.             "src": null,
  242.             "ssh_keyfile": null,
  243.             "timeout": null,
  244.             "transport": "cli",
  245.             "use_ssl": true,
  246.             "username": null,
  247.             "validate_certs": true
  248.         }
  249.     }
  250. }
  251. META: ran handlers
  252. META: ran handlers
  253.  
  254. PLAY RECAP ***********************************************************************************************************************************************************
  255.  
  256. nethost123 : ok=7    changed=1    unreachable=0    failed=0
  257.  
  258. NX-OS Save Config (nx-os config) --------------------------------------- 36.00s
  259. Save Config ------------------------------------------------------------- 2.07s
  260. Set up auth facts ------------------------------------------------------- 0.11s
  261.  ------------------------------------------------------------------------ 0.09s
  262. Credentials arguments --------------------------------------------------- 0.07s
  263. Default transport cli --------------------------------------------------- 0.06s
  264. Extra verification if running on ALL hosts ------------------------------ 0.05s
  265.  
  266. Playbook finished: Wed Dec 12 07:30:49 2018, 7 total tasks.  0:00:38 elapsed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement