env.roledefs = {'ex1': ['host1.example.com'], 'ex2': ['host2.example.com']}
env.roles = ['ex1']

def download_backup():
    run('ls -t /usr/local/lib/backups | head -1')
How to target a different host inside a Fabric command