-
-
Save ashwini-mhatre/f90d7857e120a20311800adc6b8b6521 to your computer and use it in GitHub Desktop.
interface_detect
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
py3.8.5_final) amhatre@ashwinis-MacBook-Pro playbooks % ansible-navigator run test_deploy.yml -i inventory/inventory.yaml --ee false --mode stdout -vvvv | |
ansible-playbook [core 2.13.7] | |
config file = /Users/amhatre/ansible-collections/playbooks/ansible.cfg | |
configured module search path = ['/Users/amhatre/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | |
ansible python module location = /Users/amhatre/ansible_venvs/py3.8.5_final/lib/python3.8/site-packages/ansible | |
ansible collection location = /Users/amhatre/ansible-collections/collections | |
executable location = /Users/amhatre/ansible_venvs/py3.8.5_final/bin/ansible-playbook | |
python version = 3.8.5 (default, Jan 7 2021, 17:04:44) [Clang 12.0.0 (clang-1200.0.32.28)] | |
jinja version = 3.1.2 | |
libyaml = True | |
Using /Users/amhatre/ansible-collections/playbooks/ansible.cfg as config file | |
setting up inventory plugins | |
host_list declined parsing /Users/amhatre/ansible-collections/playbooks/inventory/inventory.yaml as it did not pass its verify_file() method | |
script declined parsing /Users/amhatre/ansible-collections/playbooks/inventory/inventory.yaml as it did not pass its verify_file() method | |
Parsed /Users/amhatre/ansible-collections/playbooks/inventory/inventory.yaml inventory source with ini plugin | |
Loading callback plugin default of type stdout, v2.0 from /Users/amhatre/ansible_venvs/py3.8.5_final/lib/python3.8/site-packages/ansible/plugins/callback/default.py | |
Loading callback plugin awx_display of type stdout, v2.0 from /Users/amhatre/ansible_venvs/py3.8.5_final/lib/python3.8/site-packages/ansible_runner/display_callback/callback/awx_display.py | |
Skipping callback 'awx_display', as we already have a stdout callback. | |
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: test_deploy.yml ****************************************************** | |
Positional arguments: /Users/amhatre/ansible-collections/playbooks/test_deploy.yml | |
verbosity: 4 | |
connection: smart | |
timeout: 10 | |
become_method: sudo | |
tags: ('all',) | |
inventory: ('/Users/amhatre/ansible-collections/playbooks/inventory/inventory.yaml',) | |
forks: 5 | |
1 plays in /Users/amhatre/ansible-collections/playbooks/test_deploy.yml | |
PLAY [Enable users to detect configuration drift in network infrastructure.] *** | |
META: ran handlers | |
TASK [INTERFACES Manager] ****************************************************** | |
task path: /Users/amhatre/ansible-collections/playbooks/test_deploy.yml:6 | |
Loading collection network.interfaces from /Users/amhatre/ansible-collections/collections/ansible_collections/network/interfaces | |
TASK [network.interfaces.run : Include tasks] ********************************** | |
task path: /Users/amhatre/ansible-collections/collections/ansible_collections/network/interfaces/roles/run/tasks/main.yml:2 | |
included: /Users/amhatre/ansible-collections/collections/ansible_collections/network/interfaces/roles/run/tasks/includes/detect.yaml for 10.0.150.115 => (item={'name': 'detect'}) | |
TASK [Invoke detect function] ************************************************** | |
task path: /Users/amhatre/ansible-collections/collections/ansible_collections/network/interfaces/roles/run/tasks/includes/detect.yaml:2 | |
Loading collection network.base from /Users/amhatre/ansible-collections/collections/ansible_collections/network/base | |
TASK [network.base.resource_manager : Run the platform specific tasks] ********* | |
task path: /Users/amhatre/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/main.yml:2 | |
[WARNING]: TASK: network.base.resource_manager : Run the platform specific | |
tasks: The loop variable 'item' is already in use. You should set the | |
`loop_var` value in the `loop_control` option for the task to something else to | |
avoid variable collisions and unexpected behavior. | |
included: /Users/amhatre/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/./detect.yaml for 10.0.150.115 => (item=/Users/amhatre/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/detect.yaml) | |
TASK [network.base.resource_manager : Set default path] ************************ | |
task path: /Users/amhatre/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/detect.yaml:2 | |
Loading collection ansible.netcommon from /Users/amhatre/ansible-collections/collections/ansible_collections/ansible/netcommon | |
Loading collection cisco.iosxr from /Users/amhatre/ansible-collections/collections/ansible_collections/cisco/iosxr | |
<10.0.150.115> attempting to start connection | |
<10.0.150.115> using connection plugin ansible.netcommon.network_cli | |
Found ansible-connection at path /Users/amhatre/ansible_venvs/py3.8.5_final/bin/ansible-connection | |
^Czsh: terminated ansible-navigator run test_deploy.yml -i inventory/inventory.yaml --ee false | |
(py3.8.5_final) amhatre@ashwinis-MacBook-Pro playbooks % ansible-navigator run test_deploy.yml -i inventory/inventory.yaml --ee false --mode stdout | |
PLAY [Enable users to detect configuration drift in network infrastructure.] *** | |
TASK [INTERFACES Manager] ****************************************************** | |
TASK [network.interfaces.run : Include tasks] ********************************** | |
included: /Users/amhatre/ansible-collections/collections/ansible_collections/network/interfaces/roles/run/tasks/includes/detect.yaml for 10.0.150.115 => (item={'name': 'detect'}) | |
TASK [Invoke detect function] ************************************************** | |
TASK [network.base.resource_manager : Run the platform specific tasks] ********* | |
[WARNING]: TASK: network.base.resource_manager : Run the platform specific | |
tasks: The loop variable 'item' is already in use. You should set the | |
`loop_var` value in the `loop_control` option for the task to something else to | |
avoid variable collisions and unexpected behavior. | |
included: /Users/amhatre/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/./detect.yaml for 10.0.150.115 => (item=/Users/amhatre/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/tasks/detect.yaml) | |
TASK [network.base.resource_manager : Set default path] ************************ | |
[WARNING]: Persistent connection logging is enabled for 10.0.150.115. This will | |
log ALL interactions and WILL NOT redact sensitive configuration like | |
passwords. USE WITH CAUTION! | |
ok: [10.0.150.115] | |
TASK [network.base.resource_manager : Get list of SOT files] ******************* | |
[WARNING]: Persistent connection logging is enabled for 10.0.150.115. This will | |
log ALL interactions and WILL NOT redact sensitive configuration like | |
passwords. USE WITH CAUTION! | |
ok: [10.0.150.115] | |
TASK [network.base.resource_manager : Include check_drift task] **************** | |
included: /Users/amhatre/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/check_drift.yaml for 10.0.150.115 => (item={'path': 'inventory/host_vars/10.0.150.115/l3_interfaces.yaml', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 501, 'gid': 20, 'size': 124, 'inode': 24562605, 'dev': 16777221, 'nlink': 1, 'atime': 1677138631.4488409, 'mtime': 1677138630.4012318, 'ctime': 1677138630.422227, 'gr_name': 'staff', 'pw_name': 'amhatre', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False}) | |
included: /Users/amhatre/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/check_drift.yaml for 10.0.150.115 => (item={'path': 'inventory/host_vars/10.0.150.115/l2_interfaces.yaml', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 501, 'gid': 20, 'size': 160, 'inode': 26270526, 'dev': 16777221, 'nlink': 1, 'atime': 1681811800.9191914, 'mtime': 1681811800.3272855, 'ctime': 1681811800.53858, 'gr_name': 'staff', 'pw_name': 'amhatre', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False}) | |
included: /Users/amhatre/ansible-collections/collections/ansible_collections/network/base/roles/resource_manager/includes/check_drift.yaml for 10.0.150.115 => (item={'path': 'inventory/host_vars/10.0.150.115/interfaces.yaml', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 501, 'gid': 20, 'size': 186, 'inode': 26270395, 'dev': 16777221, 'nlink': 1, 'atime': 1681906602.7822738, 'mtime': 1681906601.5412874, 'ctime': 1681906601.5412874, 'gr_name': 'staff', 'pw_name': 'amhatre', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False}) | |
TASK [network.base.resource_manager : Set facts] ******************************* | |
[WARNING]: Persistent connection logging is enabled for 10.0.150.115. This will | |
log ALL interactions and WILL NOT redact sensitive configuration like | |
passwords. USE WITH CAUTION! | |
ok: [10.0.150.115] | |
TASK [network.base.resource_manager : Grab the resource facts] ***************** | |
[WARNING]: Persistent connection logging is enabled for 10.0.150.115. This will | |
log ALL interactions and WILL NOT redact sensitive configuration like | |
passwords. USE WITH CAUTION! | |
ok: [10.0.150.115] | |
TASK [network.base.resource_manager : Check for config drift] ****************** | |
[WARNING]: Persistent connection logging is enabled for 10.0.150.115. This will | |
log ALL interactions and WILL NOT redact sensitive configuration like | |
passwords. USE WITH CAUTION! | |
ok: [10.0.150.115] | |
TASK [network.base.resource_manager : Show the difference in configuration] **** | |
skipping: [10.0.150.115] | |
TASK [network.base.resource_manager : Detect if there is config drift.] ******** | |
skipping: [10.0.150.115] | |
TASK [network.base.resource_manager : Set facts] ******************************* | |
[WARNING]: Persistent connection logging is enabled for 10.0.150.115. This will | |
log ALL interactions and WILL NOT redact sensitive configuration like | |
passwords. USE WITH CAUTION! | |
ok: [10.0.150.115] | |
TASK [network.base.resource_manager : Grab the resource facts] ***************** | |
[WARNING]: Persistent connection logging is enabled for 10.0.150.115. This will | |
log ALL interactions and WILL NOT redact sensitive configuration like | |
passwords. USE WITH CAUTION! | |
ok: [10.0.150.115] | |
TASK [network.base.resource_manager : Check for config drift] ****************** | |
[WARNING]: Persistent connection logging is enabled for 10.0.150.115. This will | |
log ALL interactions and WILL NOT redact sensitive configuration like | |
passwords. USE WITH CAUTION! | |
ok: [10.0.150.115] | |
TASK [network.base.resource_manager : Show the difference in configuration] **** | |
skipping: [10.0.150.115] | |
TASK [network.base.resource_manager : Detect if there is config drift.] ******** | |
skipping: [10.0.150.115] | |
TASK [network.base.resource_manager : Set facts] ******************************* | |
[WARNING]: Persistent connection logging is enabled for 10.0.150.115. This will | |
log ALL interactions and WILL NOT redact sensitive configuration like | |
passwords. USE WITH CAUTION! | |
ok: [10.0.150.115] | |
TASK [network.base.resource_manager : Grab the resource facts] ***************** | |
[WARNING]: Persistent connection logging is enabled for 10.0.150.115. This will | |
log ALL interactions and WILL NOT redact sensitive configuration like | |
passwords. USE WITH CAUTION! | |
ok: [10.0.150.115] | |
TASK [network.base.resource_manager : Check for config drift] ****************** | |
[WARNING]: Persistent connection logging is enabled for 10.0.150.115. This will | |
log ALL interactions and WILL NOT redact sensitive configuration like | |
passwords. USE WITH CAUTION! | |
changed: [10.0.150.115] | |
TASK [network.base.resource_manager : Show the difference in configuration] **** | |
[WARNING]: Persistent connection logging is enabled for 10.0.150.115. This will | |
log ALL interactions and WILL NOT redact sensitive configuration like | |
passwords. USE WITH CAUTION! | |
--- before | |
+++ after | |
@@ -1,2 +1,2 @@ | |
-{'name': 'GigabitEthernet0/0/0/1', 'description': 'this is interface1', 'enabled': True} | |
-{'name': 'GigabitEthernet0/0/0/1', 'description': 'this is interface1', 'enabled': False} | |
changed: [10.0.150.115] | |
TASK [network.base.resource_manager : Detect if there is config drift.] ******** | |
[WARNING]: Persistent connection logging is enabled for 10.0.150.115. This will | |
log ALL interactions and WILL NOT redact sensitive configuration like | |
passwords. USE WITH CAUTION! | |
fatal: [10.0.150.115]: FAILED! => {"changed": false, "msg": "configuration drift is found in cisco.iosxr.iosxr_interfaces Resource"} | |
PLAY RECAP ********************************************************************* | |
10.0.150.115 : ok=17 changed=2 unreachable=0 failed=1 skipped=4 rescued=0 ignored=0 | |
Please review the log for errors. | |
(py3.8.5_final) amhatre@ashwinis-MacBook-Pro playbooks % |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment