Bonding with ansible

20 views
Skip to first unread message

marcos

unread,
Jul 6, 2020, 9:56:37 AM7/6/20
to Ansible Project

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

Dick Visser

unread,
Jul 6, 2020, 11:14:31 AM7/6/20
to ansible...@googlegroups.com
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...)
> --
> 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 ansible-proje...@googlegroups.com.
> 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
Reply all
Reply to author
Forward
0 new messages