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
Continue readingMonth: June 2022
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
Continue readingWorking 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
Continue readingWorking 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
Continue readingWorking 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 –
Continue readingWorking 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
Continue reading