Created
April 30, 2021 02:19
-
-
Save dsx1123/dc71e49f4764f2ebc11a9811af5c8706 to your computer and use it in GitHub Desktop.
This file contains 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
ansible-playbook -i host dcnm_ext_connection.yml -vvv master | |
ansible-playbook 2.10.5 | |
config file = /root/.ansible.cfg | |
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | |
ansible python module location = /root/virtualenv/ansible/lib/python3.7/site-packages/ansible | |
executable location = /root/virtualenv/ansible/bin/ansible-playbook | |
python version = 3.7.3 (default, Apr 3 2019, 05:39:12) [GCC 8.3.0] | |
Using /root/.ansible.cfg as config file | |
host_list declined parsing /root/workspace/ansible/onug_demo/host as it did not pass its verify_file() method | |
script declined parsing /root/workspace/ansible/onug_demo/host as it did not pass its verify_file() method | |
auto declined parsing /root/workspace/ansible/onug_demo/host as it did not pass its verify_file() method | |
Parsed /root/workspace/ansible/onug_demo/host inventory source with ini plugin | |
redirecting (type: action) cisco.dcnm.dcnm_vrf to cisco.dcnm.dcnm | |
redirecting (type: callback) ansible.builtin.profile_tasks to ansible.posix.profile_tasks | |
Skipping callback 'default', as we already have a stdout callback. | |
Skipping callback 'minimal', as we already have a stdout callback. | |
Skipping callback 'oneline', as we already have a stdout callback. | |
PLAYBOOK: dcnm_ext_connection.yml **************************************************************************************************************************************************************************************************************** | |
1 plays in dcnm_ext_connection.yml | |
Read vars_file 'vars.yml' | |
Read vars_file 'vars.yml' | |
Read vars_file 'vars.yml' | |
PLAY [Configure external connectivity] *********************************************************************************************************************************************************************************************************** | |
Read vars_file 'vars.yml' | |
META: ran handlers | |
Read vars_file 'vars.yml' | |
redirecting (type: action) cisco.dcnm.dcnm_vrf to cisco.dcnm.dcnm | |
TASK [external | attach vrf blue to border leaf N93600-GX-S1] ************************************************************************************************************************************************************************************ | |
task path: /root/workspace/ansible/onug_demo/dcnm_ext_connection.yml:26 | |
Thursday 29 April 2021 19:16:47 -0700 (0:00:00.093) 0:00:00.093 ******** | |
redirecting (type: connection) ansible.builtin.httpapi to ansible.netcommon.httpapi | |
redirecting (type: action) cisco.dcnm.dcnm_vrf to cisco.dcnm.dcnm | |
<172.25.74.53> ESTABLISH LOCAL CONNECTION FOR USER: root | |
<172.25.74.53> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-local-2144896m5ohy0 `"&& mkdir "` echo /root/.ansible/tmp/ansible-local-2144896m5ohy0/ansible-tmp-1619749009.8617787-21453-184837820567130 `" && echo ansible-tmp-1619749009.8617787-21453-184837820567130="` echo /root/.ansible/tmp/ansible-local-2144896m5ohy0/ansible-tmp-1619749009.8617787-21453-184837820567130 `" ) && sleep 0' | |
<172.25.74.53> Attempting python interpreter discovery | |
<172.25.74.53> EXEC /bin/sh -c 'echo PLATFORM; uname; echo FOUND; command -v '"'"'/usr/bin/python'"'"'; command -v '"'"'python3.7'"'"'; command -v '"'"'python3.6'"'"'; command -v '"'"'python3.5'"'"'; command -v '"'"'python2.7'"'"'; command -v '"'"'python2.6'"'"'; command -v '"'"'/usr/libexec/platform-python'"'"'; command -v '"'"'/usr/bin/python3'"'"'; command -v '"'"'python'"'"'; echo ENDFOUND && sleep 0' | |
<172.25.74.53> EXEC /bin/sh -c '/usr/bin/python && sleep 0' | |
Using module file /root/.ansible/collections/ansible_collections/cisco/dcnm/plugins/modules/dcnm_vrf.py | |
<172.25.74.53> PUT /root/.ansible/tmp/ansible-local-2144896m5ohy0/tmpm8z5nes7 TO /root/.ansible/tmp/ansible-local-2144896m5ohy0/ansible-tmp-1619749009.8617787-21453-184837820567130/AnsiballZ_dcnm_vrf.py | |
<172.25.74.53> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-local-2144896m5ohy0/ansible-tmp-1619749009.8617787-21453-184837820567130/ /root/.ansible/tmp/ansible-local-2144896m5ohy0/ansible-tmp-1619749009.8617787-21453-184837820567130/AnsiballZ_dcnm_vrf.py && sleep 0' | |
<172.25.74.53> EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-local-2144896m5ohy0/ansible-tmp-1619749009.8617787-21453-184837820567130/AnsiballZ_dcnm_vrf.py && sleep 0' | |
<172.25.74.53> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-local-2144896m5ohy0/ansible-tmp-1619749009.8617787-21453-184837820567130/ > /dev/null 2>&1 && sleep 0' | |
changed: [172.25.74.53] => { | |
"ansible_facts": { | |
"discovered_interpreter_python": "/usr/bin/python3" | |
}, | |
"changed": true, | |
"diff": [ | |
{ | |
"attach": [ | |
{ | |
"deploy": true, | |
"ip_address": "172.31.186.152", | |
"vlan_id": 0 | |
} | |
], | |
"vrf_name": "blue" | |
} | |
], | |
"invocation": { | |
"module_args": { | |
"check_mode": false, | |
"config": [ | |
{ | |
"attach": [ | |
{ | |
"ip_address": "172.31.186.152", | |
"vrf_lite": [ | |
{ | |
"peer_vrf": "blue" | |
} | |
] | |
} | |
], | |
"vrf_name": "blue" | |
} | |
], | |
"fabric": "lab105-fabric-1", | |
"state": "merged" | |
} | |
}, | |
"response": [ | |
{ | |
"DATA": { | |
"blue-[FDO23300B6V/C93600CD-GX-S1]": "SUCCESS" | |
}, | |
"MESSAGE": "OK", | |
"METHOD": "POST", | |
"REQUEST_PATH": "https://172.25.74.53:443/rest/top-down/fabrics/lab105-fabric-1/vrfs/attachments", | |
"RETURN_CODE": 200 | |
}, | |
{ | |
"DATA": { | |
"status": "" | |
}, | |
"MESSAGE": "OK", | |
"METHOD": "POST", | |
"REQUEST_PATH": "https://172.25.74.53:443/rest/top-down/fabrics/lab105-fabric-1/vrfs/deployments", | |
"RETURN_CODE": 200 | |
} | |
] | |
} | |
Read vars_file 'vars.yml' | |
META: ran handlers | |
Read vars_file 'vars.yml' | |
META: ran handlers | |
PLAY RECAP *************************************************************************************************************************************************************************************************************************************** | |
172.25.74.53 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 | |
Thursday 29 April 2021 19:16:54 -0700 (0:00:06.984) 0:00:07.078 ******** | |
=============================================================================== | |
external | attach vrf blue to border leaf N93600-GX-S1 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 6.98s | |
/root/workspace/ansible/onug_demo/dcnm_ext_connection.yml:26 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment