Reputation: 1
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
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