Chris
Chris

Reputation: 1

Fabric 2.5 howto use fabric.yaml configuration file

I'm trying to automatize some tasks with Fabric. My fabfile.py is:

from fabric import Connection, task
@task
def hostname(c):
    c.run('hostname')

And the cofiguration file is

host: www.example.com

Why hosts file is read but not used? Where is my error?

Upvotes: 0

Views: 1137

Answers (1)

2ps
2ps

Reputation: 15936

host is not a valid yml configuration file parameter. The yml file can point to an ssh configuration file that can specify hosts, users, etc.

Upvotes: 1

Related Questions