Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tdaigle@devserver ~/git/tdaigle-funct_tests (tdaigle-ntp_funct_tests) $ ansible-playbook testing-playbook-save_when.yml -e 'nethosts=nethost123' -vvvv
- ansible-playbook 2.4.2.0
- config file = /home/myusername/git/myusername-funct_tests/ansible.cfg
- configured module search path = [u'/usr/share/ansible', u'/etc/ansible/roles/Juniper.junos/library']
- ansible python module location = /usr/lib/python2.7/site-packages/ansible
- executable location = /bin/ansible-playbook
- python version = 2.7.5 (default, Sep 5 2016, 02:30:38) [GCC 4.8.5 20150623 (Red Hat 4.8.5-9)]
- Using /home/myusername/git/myusername-funct_tests/ansible.cfg as config file
- setting up inventory plugins
- Parsed /home/myusername/git/myusername-funct_tests/inventory/emds-inventory inventory source with script plugin
- [DEPRECATION WARNING]: 'include' for playbook includes. You should use 'import_playbook' instead. This feature will be removed in version 2.8. Deprecation warnings
- can be disabled by setting deprecation_warnings=False in ansible.cfg.
- [DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use 'import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions. This
- feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
- [DEPRECATION WARNING]: include is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this
- rationale.. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
- statically imported: /home/myusername/git/myusername-funct_tests/roles/save/tasks/nx-os-save_when.yml
- statically imported: /home/myusername/git/myusername-funct_tests/roles/save/tasks/ios-save_when.yml
- statically imported: /home/myusername/git/myusername-funct_tests/roles/save/tasks/eos-save_when.yml
- Loading callback plugin skippy of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc
- Loading callback plugin auditlog2 of type notification, v2.1 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc
- Loading callback plugin unnamed of type old, v1.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc
- Loading callback plugin unnamed of type old, v1.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc
- PLAYBOOK: testing-playbook-save_when.yml *****************************************************************************************************************************
- 2 plays in testing-playbook-save_when.yml
- Device username (press Enter: default to Unix username):
- Device password:
- PLAY [Get credentials interactively] *********************************************************************************************************************************
- META: ran handlers
- TASK [Set up auth facts] *********************************************************************************************************************************************
- task path: /home/myusername/git/myusername-funct_tests/include-passprompt.yml:20
- ok: [nethost123] => {
- "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result"
- }
- TASK [debug] *********************************************************************************************************************************************************
- task path: /home/myusername/git/myusername-funct_tests/include-passprompt.yml:25
- ok: [nethost123] => {
- "msg": "Will attempt connection as user 'myusername'"
- }
- META: ran handlers
- META: ran handlers
- PLAY [Functional Testing Playbook for save_when] *********************************************************************************************************************
- META: ran handlers
- TASK [_creds : Credentials arguments] ********************************************************************************************************************************
- task path: /home/myusername/git/myusername-funct_tests/roles/_creds/tasks/main.yml:6
- included: /home/myusername/git/myusername-funct_tests/roles/_creds/tasks/nx-os-api.yml for nethost123
- TASK [_creds : Default transport cli] ********************************************************************************************************************************
- task path: /home/myusername/git/myusername-funct_tests/roles/_creds/tasks/nx-os-api.yml:6
- ok: [nethost123] => {
- "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result"
- }
- TASK [base : Extra verification if running on ALL hosts] *************************************************************************************************************
- task path: /home/myusername/git/myusername-funct_tests/roles/base/tasks/main.yml:6
- TASK [NX-OS Save Config (nx-os config)] ******************************************************************************************************************************
- task path: /home/myusername/git/myusername-funct_tests/roles/save/tasks/nx-os-save_when.yml:6
- <nethost123> connection transport is cli
- <nethost123> using connection plugin network_cli
- <nethost123> socket_path: /home/myusername/.ansible/pc/5ecd1ee54c
- Using module file /usr/lib/python2.7/site-packages/ansible/modules/network/nxos/nxos_config.py
- <nethost123> ESTABLISH LOCAL CONNECTION FOR USER: myusername
- <nethost123> EXEC /bin/sh -c 'echo ~ && sleep 0'
- <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'
- <nethost123> PUT /tmp/tmpEfGnkk TO /home/myusername/.ansible/tmp/ansible-tmp-1544628613.54-158418827935242/nxos_config.py
- <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'
- <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'
- [WARNING]: argument timeout has been deprecated and will be removed in a future version
- changed: [nethost123] => {
- "changed": true,
- "invocation": {
- "module_args": {
- "after": null,
- "backup": false,
- "before": null,
- "defaults": false,
- "diff_against": null,
- "diff_ignore_lines": null,
- "force": false,
- "host": "nethost123",
- "intended_config": null,
- "lines": null,
- "match": "line",
- "parents": null,
- "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
- "port": 22,
- "provider": {
- "host": "nethost123",
- "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
- "port": 22,
- "ssh_keyfile": null,
- "timeout": 300,
- "transport": "cli",
- "use_ssl": null,
- "username": "myusername",
- "validate_certs": null
- },
- "replace": "line",
- "running_config": null,
- "save": false,
- "save_when": "modified",
- "src": null,
- "ssh_keyfile": null,
- "timeout": 300,
- "transport": "cli",
- "use_ssl": null,
- "username": "myusername",
- "validate_certs": null
- }
- }
- }
- TASK [Save Config] ***************************************************************************************************************************************************
- task path: /home/myusername/git/myusername-funct_tests/roles/save/tasks/ios-save_when.yml:6
- <nethost123> connection transport is cli
- <nethost123> using connection plugin network_cli
- <nethost123> socket_path: /home/myusername/.ansible/pc/5ecd1ee54c
- Using module file /usr/lib/python2.7/site-packages/ansible/modules/network/eos/eos_config.py
- <nethost123> ESTABLISH LOCAL CONNECTION FOR USER: myusername
- <nethost123> EXEC /bin/sh -c 'echo ~ && sleep 0'
- <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'
- <nethost123> PUT /tmp/tmpLV1sjX TO /home/myusername/.ansible/tmp/ansible-tmp-1544628646.55-120121515276485/eos_config.py
- <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'
- <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'
- ok: [nethost123] => {
- "changed": false,
- "invocation": {
- "module_args": {
- "after": null,
- "auth_pass": null,
- "authorize": null,
- "backup": false,
- "before": null,
- "defaults": false,
- "diff_against": "session",
- "diff_ignore_lines": null,
- "force": false,
- "host": null,
- "intended_config": null,
- "lines": null,
- "match": "line",
- "parents": null,
- "password": null,
- "port": null,
- "provider": {
- "auth_pass": null,
- "authorize": null,
- "host": "nethost123",
- "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
- "port": 22,
- "ssh_keyfile": null,
- "timeout": 300,
- "transport": "cli",
- "use_ssl": null,
- "username": "myusername",
- "validate_certs": null
- },
- "replace": "line",
- "running_config": null,
- "save": false,
- "save_when": "never",
- "src": null,
- "ssh_keyfile": null,
- "timeout": null,
- "transport": "cli",
- "use_ssl": true,
- "username": null,
- "validate_certs": true
- }
- }
- }
- TASK [Save Config] ***************************************************************************************************************************************************
- task path: /home/myusername/git/myusername-funct_tests/roles/save/tasks/eos-save_when.yml:6
- <nethost123> connection transport is cli
- <nethost123> using connection plugin network_cli
- <nethost123> socket_path: /home/myusername/.ansible/pc/5ecd1ee54c
- Using module file /usr/lib/python2.7/site-packages/ansible/modules/network/eos/eos_config.py
- <nethost123> ESTABLISH LOCAL CONNECTION FOR USER: myusername
- <nethost123> EXEC /bin/sh -c 'echo ~ && sleep 0'
- <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'
- <nethost123> PUT /tmp/tmpR2Qvc8 TO /home/myusername/.ansible/tmp/ansible-tmp-1544628648.64-121184222265167/eos_config.py
- <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'
- <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'
- ok: [nethost123] => {
- "changed": false,
- "invocation": {
- "module_args": {
- "after": null,
- "auth_pass": null,
- "authorize": null,
- "backup": false,
- "before": null,
- "defaults": false,
- "diff_against": "session",
- "diff_ignore_lines": null,
- "force": false,
- "host": null,
- "intended_config": null,
- "lines": null,
- "match": "line",
- "parents": null,
- "password": null,
- "port": null,
- "provider": {
- "auth_pass": null,
- "authorize": null,
- "host": "nethost123",
- "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
- "port": 22,
- "ssh_keyfile": null,
- "timeout": 300,
- "transport": "cli",
- "use_ssl": null,
- "username": "myusername",
- "validate_certs": null
- },
- "replace": "line",
- "running_config": null,
- "save": false,
- "save_when": "never",
- "src": null,
- "ssh_keyfile": null,
- "timeout": null,
- "transport": "cli",
- "use_ssl": true,
- "username": null,
- "validate_certs": true
- }
- }
- }
- META: ran handlers
- META: ran handlers
- PLAY RECAP ***********************************************************************************************************************************************************
- nethost123 : ok=7 changed=1 unreachable=0 failed=0
- NX-OS Save Config (nx-os config) --------------------------------------- 36.00s
- Save Config ------------------------------------------------------------- 2.07s
- Set up auth facts ------------------------------------------------------- 0.11s
- ------------------------------------------------------------------------ 0.09s
- Credentials arguments --------------------------------------------------- 0.07s
- Default transport cli --------------------------------------------------- 0.06s
- Extra verification if running on ALL hosts ------------------------------ 0.05s
- 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