Hi all, i try activate an virtualenv on remote host but not work.

I see this error:

fatal: [wc2-prod]: FAILED! => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    },
    "changed": true,
    "cmd": "source env/bin/activate",
    "delta": "0:00:00.004889",
    "end": "2023-02-06 20:45:55.637264",
    "invocation": {
        "module_args": {
            "_raw_params": "source env/bin/activate",
            "_uses_shell": true,
            "argv": null,
            "chdir": "/opt/wc2_3.0/",
            "creates": null,
            "executable": null,
            "removes": null,
            "stdin": null,
            "stdin_add_newline": true,
            "strip_empty_ends": true,
            "warn": false
        }
    },
    "msg": "non-zero return code",
    "rc": 127,
    "start": "2023-02-06 20:45:55.632375",
    "stderr": "/bin/sh: 1: source: not found",
    "stderr_lines": [
        "/bin/sh: 1: source: not found"
    ],
    "stdout": "",
    "stdout_lines": []
}

This is the tasks:

    - name: "Activating env"
      shell: . env/bin/activate
      args:
        chdir: '{{ webpath }}'

any ideas??

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAGUDtnmmmdUT6Z5btiJvk_5cU0coaYYwPxvHQ3uv82jB62MVqQ%40mail.gmail.com.

Reply via email to