This file contains hidden or 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
| $ podman run -it registry.redhat.io/ansible-automation-platform-25/ee-supported-rhel9:latest /bin/bash | |
| ansible-galaxy collection list | |
| Package Version | |
| ------------------------- --------- | |
| acme 3.1.0 | |
| ansible-builder 3.1.0 | |
| ansible-compat 24.10.0 |
This file contains hidden or 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
| $ cat inventory_junos | |
| [junos] | |
| 192.168.150.168 | |
| # WORKING SETUP | |
| [junos:vars] | |
| ansible_network_os=juniper.device.junos | |
| ansible_ssh_user=ansible |
This file contains hidden or 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 --------------------------------------------------------------- | |
| - name: Configure VLAN via NETCONF on Cisco NX-OS | |
| hosts: nxos | |
| gather_facts: no | |
| connection: netconf | |
| tasks: | |
| - name: Lock the candidate datastore | |
| ansible.netcommon.netconf_rpc: | |
| rpc: lock | |
| xmlns: "urn:ietf:params:xml:ns:netconf:base:1.0" |
This file contains hidden or 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 --------------------------------------------------- | |
| - name: NETCONF Confirm Commit Workflow | |
| hosts: nxos | |
| gather_facts: no | |
| tasks: | |
| - name: Stage config in candidate datastore | |
| ansible.netcommon.netconf_config: | |
| target: candidate |
This file contains hidden or 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
| --------------------------------------------------------------------------------------------------------------------------- | |
| ----------------------------------- JUNIPER DEVICE EXAMPLE --------------------------------------------------------------- | |
| --------------------------------------------------------------------------------------------------------------------------- | |
| --------------------------------------------- INVENTORY ----------------------------------------------- | |
| [junos] | |
| 192.168.150.168 | |
| [junos:vars] | |
| ansible_network_os=junos | |
| ansible_connection=local |
This file contains hidden or 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
| ============================================== Scenario 1 ===================================================== | |
| --------------------- Playbook 1 | |
| --- | |
| - name: Query UCS Fabric Port Query | |
| hosts: localhost | |
| gather_facts: no | |
| vars: | |
| ucs_fi_port_query_api_private_key: "/home/rothakur/Downloads/AnsibleTestRoh-SecretKey.txt" | |
| ucs_fi_port_query_api_key_id: "{{ rothakur_api_key }}" | |
| ucs_fi_port_query_api_uri: "https://intersight.com/api/v1" |
This file contains hidden or 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 __future__ import absolute_import, division, print_function | |
| __metaclass__ = type | |
| from ansible_collections.juniper.device.plugins.module_utils import configuration as cfg | |
This file contains hidden or 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
| candidate_arista_11(config-acl-test2)#sh ip access-lists | |
| IP Access List ANSIBLE_TEST_ACL | |
| 9 remark ######## QB & SNAPSHOT ACL TEST ################# | |
| 10 deny udp host 192.168.98.11 host 224.0.24.210 eq 21000 | |
| 15 deny udp host 192.168.98.11 host 224.0.24.210 eq 21001 | |
| 5000 permit ip any any | |
| IP Access List ANSIBLE_TEST_ACL_FAILOVER | |
| 9 remark ######## QB & SNAPSHOT ACL TEST ################ | |
| 10 deny udp host 192.168.98.10 host 224.0.24.210 eq 21000 |
This file contains hidden or 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
| ISSUES | |
| ------------------------------------------------------------------------------------------------------------------------------------------ | |
| ---------------------------------------- ISSUE 1 --------------------------------------------------------------------------- | |
| Show Vlan | |
| --- | |
| - name: Manage Vlans | |
| hosts: ios | |
| collections: |
This file contains hidden or 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 [core 2.16.11] | |
| config file = /etc/ansible/ansible.cfg | |
| configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | |
| ansible python module location = /usr/lib/python3.11/site-packages/ansible | |
| ansible collection location = /runner/requirements_collections:/root/.ansible/collections:/usr/share/ansible/collections | |
| executable location = /usr/bin/ansible-playbook | |
| python version = 3.11.7 (main, Oct 9 2024, 00:00:00) [GCC 11.4.1 20231218 (Red Hat 11.4.1-3)] (/usr/bin/python3.11) | |
| jinja version = 3.1.4 | |
| libyaml = True | |
| Using /etc/ansible/ansible.cfg as config file |
NewerOlder