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 {
                
"ftp://ftpuser:[email protected]/subc/ftp/jnpr/cfg/dp-b284-agg";;
            }

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?

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/960db01b-c4fa-4e37-8cae-97a87d40f88ao%40googlegroups.com.

Reply via email to