-
-
Save micruzz82/15a0992561c4584f8b962abe2305b32a to your computer and use it in GitHub Desktop.
Problem with using dcnm policy module to apply policy to leaf on DCNM
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 -vvv -i hosts t4.yml | |
ansible-playbook 2.10.8 | |
config file = /etc/ansible/ansible.cfg | |
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | |
ansible python module location = /usr/local/lib/python3.6/dist-packages/ansible | |
executable location = /usr/local/bin/ansible-playbook | |
python version = 3.6.9 (default, Jan 26 2021, 15:33:00) [GCC 8.4.0] | |
Using /etc/ansible/ansible.cfg as config file | |
host_list declined parsing /root/test/dcnm-iac-webinar-demo/ansible/hosts as it did not pass its verify_file() method | |
script declined parsing /root/test/dcnm-iac-webinar-demo/ansible/hosts as it did not pass its verify_file() method | |
auto declined parsing /root/test/dcnm-iac-webinar-demo/ansible/hosts as it did not pass its verify_file() method | |
Parsed /root/test/dcnm-iac-webinar-demo/ansible/hosts inventory source with ini plugin | |
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: t4.yml ******************************************************************************************************************************************** | |
1 plays in t4.yml | |
PLAY [dcnm] ************************************************************************************************************************************************* | |
META: ran handlers | |
TASK [Create policy including required variables] *********************************************************************************************************** | |
task path: /root/test/dcnm-iac-webinar-demo/ansible/t4.yml:13 | |
<10.10.1.1> ESTABLISH LOCAL CONNECTION FOR USER: root | |
<10.10.1.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-local-17040bat1jdef `"&& mkdir "` echo /root/.ansible/tmp/ansible-local-17040bat1jdef/ansible-tmp-1619023887.6049507-17047-35349857359268 `" && echo ansible-tmp-1619023887.6049507-17047-35349857359268="` echo /root/.ansible/tmp/ansible-local-17040bat1jdef/ansible-tmp-1619023887.6049507-17047-35349857359268 `" ) && sleep 0' | |
<10.10.1.1> Attempting python interpreter discovery | |
<10.10.1.1> 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' | |
<10.10.1.1> EXEC /bin/sh -c '/usr/bin/python3.6 && sleep 0' | |
Using module file /root/.ansible/collections/ansible_collections/cisco/dcnm/plugins/modules/dcnm_policy.py | |
<10.10.1.1> PUT /root/.ansible/tmp/ansible-local-17040bat1jdef/tmpm360qboq TO /root/.ansible/tmp/ansible-local-17040bat1jdef/ansible-tmp-1619023887.6049507-17047-35349857359268/AnsiballZ_dcnm_policy.py | |
<10.10.1.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-local-17040bat1jdef/ansible-tmp-1619023887.6049507-17047-35349857359268/ /root/.ansible/tmp/ansible-local-17040bat1jdef/ansible-tmp-1619023887.6049507-17047-35349857359268/AnsiballZ_dcnm_policy.py && sleep 0' | |
<10.10.1.1> EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-local-17040bat1jdef/ansible-tmp-1619023887.6049507-17047-35349857359268/AnsiballZ_dcnm_policy.py && sleep 0' | |
<10.10.1.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-local-17040bat1jdef/ansible-tmp-1619023887.6049507-17047-35349857359268/ > /dev/null 2>&1 && sleep 0' | |
ok: [10.10.1.1] => { | |
"ansible_facts": { | |
"discovered_interpreter_python": "/usr/bin/python3" | |
}, | |
"changed": false, | |
"diff": [ | |
{ | |
"deleted": [], | |
"deploy": [], | |
"merged": [], | |
"query": [], | |
"skipped": [ | |
{ | |
"Reason": "Trying to modify Policy using Template Name, use policy ID", | |
"Template": "add_ip_prefix_list" | |
} | |
] | |
} | |
], | |
"invocation": { | |
"module_args": { | |
"check_mode": false, | |
"config": [ | |
{ | |
"create_additional_policy": false, | |
"name": "add_ip_prefix_list", | |
"policy_vars": { | |
"ACL_NAME": "10.122.84.0/24", | |
"PREFIX_LIST_ACTION": "permit", | |
"PREFIX_LIST_NAME": "ansible-prefix-list", | |
"SEQ_NUM": 20 | |
}, | |
"priority": 101 | |
}, | |
{ | |
"switch": [ | |
{ | |
"ip": "10.20.20.1" | |
} | |
] | |
} | |
], | |
"deploy": false, | |
"fabric": "dcnm-fabric", | |
"state": "merged" | |
} | |
}, | |
"response": [] | |
} | |
META: ran handlers | |
META: ran handlers | |
PLAY RECAP ************************************************************************************************************************************************** | |
10.10.1.1 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment