# -*- coding: utf-8 -*- import cuisine from fabric.api import env env.use_ssh_config = True env.warn_only = True # IPアドレスは置き換えてください。 env.hosts = [ "192.0.2.1", "192.0.2.2", ] def task(): cuisine.file_exists("/etc/passwd") $ fab task [192.0.2.1] Executing task 'task' [192.0.2.1] run: test -e "/etc/passwd" && echo OK ; true [192.0.2.1] out: OK [192.0.2.2] Executing task 'task' [192.0.2.2] run: test