This manual describes how to work with Linux users through the terminal (using the command line). Creating users in linux Syntax: Example: In this example, the developer account is created. For the account, you should immediately create a password: *after entering, the system will ask you to enter the password twice. Key Description and examples […]
How to set up your CentOS repository
Creating a local yum repository on CentOS 7 from an ISO image is a convenient way to provide your local network with a comprehensive set of software packages. By creating a local repository from an ISO, you can have all the packages available on the installation media at your fingertips and eliminate the need to […]
What is firewalld? How to configure firewalld in Centos
Firewalld is utility that allow us to manage firewall rules. It is is the default firewall on Centos. Install and starting firewalld. Some CentOS systems may not have firewalld. To install it, enter: For automatic start, enter: And to start the service: General commands for managing firewalld View Status: Reload a firewalld configuration when you […]
Working with module ios_config in ansible and use src parameter
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 […]
Working with module ios_config in ansible and use replace parameters
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 […]
Working with module ios_config in ansible and use match parameters
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, […]
Working with module ios_config in ansible and use after, before parameters
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 […]
Working with module ios_config in ansible and use save_when, backup, default parameters
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) […]
Working with ios_config module, use lines and parents parameters
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 […]
Working with module ios_facts in ansible
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 […]