This won't run,
ssh -o ConnectTimeout=10 -o BatchMode=yes -o "StrictHostKeyChecking no" -q server1 "if [[ $(/usr/bin/lsblk /dev/sde | wc -l) = 2 ]]; then echo found; fi"
But if I do it on the remote cli or using ansible "if [[ $(/usr/bin/lsblk /dev/sde | wc -l) = 2 ]]; then echo found; fi"
, it will run. I don't want to use ansible all the time since we only have tower and slow to do simple query.
Thanks for your support.