With Fabric, according to this documentation , you can run an arbitrary shell command without a fabfile , like this:
fab -H host1,host2 -- echo 'hello, world!'
You can also run sudo commands in the same way, but you will be prompted for a sudo password for each node in the list.
Is there a way to avoid entering a sudo password for each host, as if the Fabric sudo() function were working?
source share