1,760
edits
Changes
→Getting the hostname on the remote worker
getHostname
</source>
: To perform the task of getHostname on the worker machine 192.168.122.169(replace with the actual IP of your worker VM), we run it on the controller machine like this:<source lang="bash">
[rchan@centos7 lab8]$ fab -f fabfile.py -H 192.168.122.169 getHostname
[192.168.122.169] Executing task 'getHostname'