I am trying to create a task that will only run when a certain network card is on the box. I have multiple ethernet interface per box, I am trying to basically do:
for eth in eth_interfaces:
if module == ‘drivername’
Is this possible? Or should I run a command to find the info and store the result to be used as the conditional?