Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'lsb_release' is not recognized as an internal or external command, while trying to run command on remote server #2310

Open
SuperMasterBlasterLaser opened this issue Aug 19, 2024 · 0 comments

Comments

@SuperMasterBlasterLaser

I have created fabfile.py where I declared all my tasks. This is example:

from fabric.tasks import task
from fabric.connection import Connection

@task
def server_version(c: Connection):
    c.run('lsb_release -a')

Then I have created separate dev.yml file where I've set my configs:

host: "my.ip.address"
user: "username"
port: 22
connect_kwargs:
    password: "my_password"
    look_for_keys: false
    allow_agent: false
env:
    env1: "Env1"
run:
    echo: true

Then I've launched by using this command:

fab --config ..\dev.yml server-version

It Throws me this error:

'lsb_release' is not recognized as an internal or external command

Why this is happening. I even tried to use other commands like uname. It is like it does not know any commands at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants