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
--- | |
- name: Instruqt AAP Setup | |
hosts: localhost | |
become: false | |
gather_facts: false | |
collections: | |
- ansible.controller | |
vars: |
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
Playbook: | |
============= | |
--- | |
- hosts: nxos | |
gather_facts: true | |
gather_subset: interfaces | |
tasks: | |
- name: Gather interface resource facts | |
cisco.nxos.nxos_facts: | |
gather_network_resources: interfaces |
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
Playbook: | |
============= | |
--- | |
- hosts: nxos | |
gather_facts: True | |
gather_subset: interfaces | |
module_defaults: | |
cisco.nxos.nxos_facts: | |
gather_network_resources: interfaces |
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
.. _nxos_platform_options: | |
*************************************** | |
NXOS Platform Options | |
*************************************** | |
The `Cisco NXOS <https://galaxy.ansible.com/ui/repo/published/cisco/nxos>`_ supports multiple connections. This page offers details on how each connection works in Ansible and how to use it. | |
.. contents:: | |
:local: |
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
# Using overridden | |
-------------------- | |
Before config: | |
----------------- | |
interface fc1/1 | |
switchport description INTF-1 | |
switchport speed 1000 | |
interface fc1/2 | |
switchport description INTF-2 |
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
from typing import TypedDict, Unpack, assert_type | |
class CustomType(TypedDict): | |
"""test.""" | |
collection: dict[str, str] | |
name: str | |
plugin_type: str | |
docstring: str |
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
2023-05-22 19:00:03,530 - ansible_rulebook.app - INFO - Starting sources | |
2023-05-22 19:00:03,530 - ansible_rulebook.app - INFO - Starting rules | |
2023-05-22 19:00:03,530 - ansible_rulebook.engine - INFO - run_ruleset | |
2023-05-22 19:00:03,530 - drools.ruleset - INFO - Using jar: /home/nchakrab/.virtualenvs/core/lib/python3.9/site-packages/drools/jars/drools-ansible-rulebook-integration-runtime-1.0.1-SNAPSHOT.jar | |
2023-05-22 19:00:03 974 [main] INFO org.drools.ansible.rulebook.integration.api.rulesengine.AbstractRulesEvaluator - Start automatic pseudo clock with a tick every 100 milliseconds | |
2023-05-22 19:00:03 985 [main] INFO org.drools.ansible.rulebook.integration.api.rulesengine.AbstractRulesEvaluator - Start automatic pseudo clock with a tick every 100 milliseconds | |
2023-05-22 19:00:03,985 - ansible_rulebook.engine - INFO - ruleset define: {"name": "Ruleset-1", "hosts": ["localhost"], "sources": [{"EventSource": {"name": "range", "source_name": "ansible.eda.range", "source_args": {"limit": 5}, "source_filters": |
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
--- | |
- name: Report incident to ServiceNow | |
hosts: clus-mdt-leaf1 | |
sources: | |
- ansible.eda.kafka: | |
host: 172.22.225.11 | |
topic: eda | |
port: 9092 | |
rules: | |
- name: Check route count |
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
--- | |
- hosts: nxos | |
gather_facts: false | |
tasks: | |
- ansible.builtin.debug: | |
msg: "### start gathering information to report detected event ###" | |
- name: "Gather NX-OS version information from affected host" | |
cisco.nxos.nxos_command: | |
commands: show version |
NewerOlder