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.

Reply via email to