ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
814 stars 1.49k forks source link

community.general.django_command don't found python executable #8884

Open Hraesvelg opened 9 hours ago

Hraesvelg commented 9 hours ago

Summary

When i try to run django_commande to run migrate i got :

TASK [quasm.django_quasm : Run Django database migrations] ***** fatal: []: FAILED! => {"changed": false, "msg": "Failed to find required executable \"python\" in paths: /:/:/:/:/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"}

Issue Type

Bug Report

Component Name

django_command

Ansible Version

$ ansible --version
ansible [core 2.17.3]

Community.general Version

$ ansible-galaxy collection list community.general
Collection        Version
----------------- -------
community.general 9.4.0

Configuration

$ ansible-config dump --only-changed

OS / Environment

Ubuntu

Steps to Reproduce

- name: Run Django database migrations
  community.general.django_command:
    command: migrate
    settings: "{{ django_settings_module }}"
    pythonpath: "{{ virtualenv_path }}/bin"
    venv: "{{ virtualenv_path }}"

Expected Results

i expect migrate is applied on database

Actual Results

Code of Conduct

ansibullbot commented 9 hours ago

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot commented 9 hours ago

cc @russoz click here for bot help