If you show what the current data structure exactly looks like, and how this ties into what you want your system to look like, then we might be able to help. (i'm only vaguely familiar with the network interface stuff...)
On Mon, 6 Jul 2020 at 15:56, marcos <[email protected]> wrote: > > I already know hot to bond to interfaces with ansible. But here is were it > gets complicated: I need to make a playbook that lists all the facts, > filtering just the interfaces, classifying them by speed and bonding them > automatically. > The idea would be to start with something like this, but I'm completely lost. > > hosts: pve1 remote_user: root tasks: > > name: print interfaces debug: msg: "{{ ansible_facts | dict2items | > selectattr('value.speed', 'defined') | map(attribute='value') | list}}" > > If someone knows and explains me how to do it, it would be very nice > > -- > 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/33283a12-73b2-4091-a399-e429b5095417o%40googlegroups.com. -- Dick Visser Trust & Identity Service Operations Manager GÉANT -- 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/CAL8fbwMy02m%2Buw%2BsRn7Ruc%3DgEY-vO3jy1T7oXE-pvh9eMUcEXQ%40mail.gmail.com.
