pulling infor from a config.

20 views
Skip to first unread message

Joe

unread,
Jun 18, 2020, 9:56:21 AM6/18/20
to Ansible Project
I am trying to figure out how to put information from a switch config using ansible so it can be manipulated and used as data in your ansible playbook.  For example, all switches have a configuration section similar to the following:
    archival {
        configuration {
            transfer-on-commit;
            archive-sites {
            }

I'm trying to figure out how to put the ftp:// line and manipulate that string so i can replace the ip with a new/different ip, in addition i want to pull out the directory structure so i can use that path to create the needed directory structure on the new server. would any one have any tips on this?

Reply all
Reply to author
Forward
0 new messages