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 […]
Tag: ios_config
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 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 […]