Skip to main content

Automation tools

  • Ansible
  • Netbox
  • Linux
  • ELK
  • Docker
  • Jenkins
  • Networking
  • Gitlab CI
  • Kubernetes

Working with module ios_config in ansible and use src parameter

June 29, 2022February 28, 2023 admin Leave a comment

The src parameter allows you to specify the path to a configuration file or configuration template to be loaded on the device. This parameter is mutually exclusive with lines (that is, either lines or src can be specified). Example playbook ios_config_src.yml: The templates/acl_cfg.txt file contains the following configuration: We delete this ACL on the router […]

Read More

Working with module ios_config in ansible and use replace parameters

June 28, 2022February 28, 2023 admin Leave a comment

The replace parameter specifies how exactly the configuration should be replaced: How to use replace: line parameter in module ios_config? The replace: line mode is the default behavior. In this mode, if changes were detected, only the missing rows are sent. For example, on a router such an ACL: Let’s try to run this playbook […]

Read More

Working with module ios_config in ansible and use match parameters

June 27, 2022June 27, 2022 admin Leave a comment

The match parameter specifies how exactly the commands should be compared (which is considered a change): line – commands are checked line by line. This mode is used by default strict – not only the commands themselves must match, but also their position relative to each other exact – commands must match the configuration exactly, […]

Read More

Working with module ios_config in ansible and use after, before parameters

June 20, 2022June 20, 2022 admin Leave a comment

How to use after parameter of ios_config module in ansible? The after parameter specifies which commands to execute after the commands in the lines (or commands) list. Commands that are specified in the after parameter: executed only if changes need to be made. however, they will be executed regardless of whether they are in the […]

Read More

Working with module ios_config in ansible and use save_when, backup, default parameters

June 19, 2022June 20, 2022 admin Leave a comment

How to use save_when parameter of ios_config module in ansible? The save_when parameter allows you to specify whether you want to save the current configuration to startup config. By default, the parameter value is no. Available value options: always – always save the configuration (in this case, the modified flag will be True) never (default) […]

Read More

Working with ios_config module, use lines and parents parameters

June 17, 2022June 17, 2022 admin Leave a comment

The ios_config module – allows you to configure devices running IOS, as well as generate configuration templates or send commands based on a template. Module parameters: after – what to do after commands before – what actions to perform before commands backup – a parameter that specifies whether to make a backup copy of the […]

Read More

Working with module ios_facts in ansible

June 16, 2022June 16, 2022 admin Leave a comment

IOS_FACTS module – collects information from devices running iOS. Information is taken from the following commands: dir show version show memory statistics show interfaces show ipv6 interface show lldp show lldp neighbors detail show running-config In the module, you can specify which parameters to collect – you can collect all information, but only a subset […]

Read More

Working with module ios_command in ansible

June 14, 2022June 14, 2022 admin Leave a comment

Hello everybody) In this post I will show you how to work with ansible module ios_command. What is ios_command module do? It sends a show command to an IOS device and returns the result of the command. The ios_command module does not support sending commands in configuration mode. For this, a separate module is used […]

Read More

Ansible modules for working with network devices

June 13, 2022July 13, 2022 admin Leave a comment

In this post, we will look at CLI modules that work with network devices. Globally, modules for working with network equipment can be divided into two parts: modules for API-enabled equipment modules for equipment that only works via CLI For CLI-only hardware, Ansible supports these three types of modules: os_command – execute show commands os_facts […]

Read More

Working with module execution results in Ansible.

June 13, 2022June 13, 2022 admin Leave a comment

In this post discusses several ways that you can look at the output received from devices. We will be using the raw module, but the same principles apply to other modules as well. One way to display the output of commands has already been used is the verbose flag. Detailed example of running a playbook […]

Read More

Posts pagination

Newer posts 1 2 3 4 Older posts
  • YouTube
  • Facebook
  • Twitter
  • Telegram
  • Patreon

Recent Posts

  • GitLab CI/CD in Production: From Templates to Dynamic Environments June 6, 2025
  • Setting up an configuring Kubernetes cluster on Ubuntu server March 21, 2023
  • How to populate devices in Netbox with Python. February 27, 2023
  • How to extend the root partition with LVM and extend EXT4 file system. February 24, 2023
  • How to extend the root partition with LVM and extend XFS file system. February 21, 2023

Recent Comments

  • admin on How to install AWX Ansible Tower to MicroK8s
  • admin on How to install AWX Ansible Tower to MicroK8s
  • Stan on How to install AWX Ansible Tower to MicroK8s
  • admin on How to install AWX Ansible Tower to MicroK8s
  • sai on How to install AWX Ansible Tower to MicroK8s

Archives

  • June 2025
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • May 2016

Categories

  • Ansible
  • Docker
  • ELK
  • Gitlab CI
  • Jenkins
  • Kubernetes
  • Linux
  • Netbox
  • Networking
  • Python
Flag Counter

  • Ansible
  • Netbox
  • Linux
  • ELK
  • Docker
  • Jenkins
  • Networking
  • Gitlab CI
  • Kubernetes
sparkling Theme by Colorlib Powered by WordPress