Skip to content

Instantly share code, notes, and snippets.

@n8foo
Created Jul 19, 2016
Embed
What would you like to do?
example python fabric task
#! /bin/env/python
from fabric.api import *
env.use_ssh_config=True
env.roledefs = {
'all': [
'host1',
'host2',
'host3',
'host4',
'host5'],
}
#@parallel(pool_size=3)
@task
def aptget_upgrade():
sudo('apt-get -y update')
sudo('apt-get -y upgrade')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment