Daniel Lumb
2018-08-08 11:38:48 UTC
Hi all,
New to Fabric and this is a very basic question but I'm finding it crazily hard to find the right documentation/usage examples...
I'm trying to create a series of tasks in fabfile.py, one of these tasks is solely intended to reboot the target servers. I can't seem to define this in a way that works, this is what I have:
@task
def reboot():
with hide ("everything"), show ("stderr"):
reboot
This runs OK using the fab binary on the CLI but it doesn't seem to actually do anything on the target servers. I've tried a fair few other things and haven't had any success.
Apologies this is so simple, a link to any relevant documentation is fine.
Thanks,
Dan
New to Fabric and this is a very basic question but I'm finding it crazily hard to find the right documentation/usage examples...
I'm trying to create a series of tasks in fabfile.py, one of these tasks is solely intended to reboot the target servers. I can't seem to define this in a way that works, this is what I have:
@task
def reboot():
with hide ("everything"), show ("stderr"):
reboot
This runs OK using the fab binary on the CLI but it doesn't seem to actually do anything on the target servers. I've tried a fair few other things and haven't had any success.
Apologies this is so simple, a link to any relevant documentation is fine.
Thanks,
Dan