-
Notifications
You must be signed in to change notification settings - Fork 92
It's work on Windows hosts? #708
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
Comments
Hey @svjatoslav-torn, can you confirm whether |
This python and PyMySQL I try add ansible_python_interpreter: C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python313\\python.exe
ansible_python_interpreter: "C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python313\\python.exe"
ansible_python_interpreter: C:\Users\Administrator\AppData\Local\Programs\Python\Python313\python.exe
ansible_python_interpreter: "C:\Users\Administrator\AppData\Local\Programs\Python\Python313\python.exe"
ansible_python_interpreter: C:/Users/Administrator/AppData/Local/Programs/Python/Python313/python.exe
ansible_python_interpreter: "C:/Users/Administrator/AppData/Local/Programs/Python/Python313/python.exe"
ansible_python_interpreter: %LOCALAPPDATA%\\Programs\\Python\\Python313\\python.exe
ansible_python_interpreter: "%LOCALAPPDATA%\\Programs\\Python\\Python313\\python.exe" Now my playbook sees so ---
- name: Test MySQL connection using community.mysql.mysql_info
hosts: all
gather_facts: false
vars:
ansible_python_interpreter: "C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python313\\python.exe"
tasks:
- name: Gather MySQL information
community.mysql.mysql_info:
login_user: "{{ mysql_user }}"
login_password: "{{ mysql_password }}"
login_host: "localhost"
register: mysql_info
- name: Debug MySQL info
debug:
var: mysql_info My inventory look so GNU nano 7.2 /var/ansible/inventory_test.yml
---
all:
vars:
ansible_host_key_checking: false
group1:
hosts:
65.44.44.44:
ansible_shell_type: cmd
ansible_connection: ssh
ansible_ssh_user: Administrator
ansible_ssh_password: password
ansible_ssh_port: 33
mysql_user: root
mysql_password: mysql_password I run command ansible-playbook /var/ansible/mysql_test.yml -i /var/ansible/inventory_test.yml I see always same result:
|
@svjatoslav-torn hello, thanks for opening the issue. Not being a windows user, it's hard for me to say what could the issue be about. As a workaround, you could:
|
Guys, hello) I am understand, this module be work on windows hosts?
I already try
But get error:
I installed Python 3.13 and PyMySQL on Windows host, but it not work)
The text was updated successfully, but these errors were encountered: