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

FAILED! => {"changed": false, "msg": "Could not find the requested service mysql: host"} #521

Open
garyyang6 opened this issue Mar 26, 2023 · 7 comments

Comments

@garyyang6
Copy link

Per https://galaxy.ansible.com/geerlingguy/mysql, I installed the role,

ansible-galaxy install geerlingguy.mysql

playbooks/install_database.yaml:

- hosts: database
  user: ubuntu
  become: yes
  vars_files:
   - ../vars/database.yaml
  roles:
    - role: geerlingguy.mysql

vars/database.yaml

mysql_databases:
  - name: db01
    encoding: utf8mb4
    collation: utf8mb4_unicode_ci
mysql_users:
  - name: linuxhint
    host: "%"
    password: secret
    priv: "db01.*:ALL"

Ran the check command,

ansible-playbook -i hosts playbooks/install_database.yaml -e ansible_python_interpreter=/usr/bin/python3 --check

I got the error,

fatal: [30.10.1.7]: FAILED! => {"changed": false, "msg": "Could not find the requested service mysql: host"}
30.10.1.7                  : ok=18   changed=2    unreachable=0    failed=1    skipped=1    rescued=0    ignored=0
@github-actions
Copy link

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

@github-actions github-actions bot added the stale label Jul 29, 2023
@okaufmann
Copy link

I have the same problem when using with it with a Ubuntu 22.04...

@github-actions github-actions bot removed the stale label Aug 26, 2023
Copy link

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

@github-actions github-actions bot added the stale label Dec 30, 2023
@armenr
Copy link

armenr commented Feb 11, 2024

I've got the same exact issue on RockyLinux9 in a docker container being provisioned via Vagrant.

@github-actions github-actions bot removed the stale label Feb 17, 2024
@vishwanath69
Copy link

using ansible-playbook if one of MySQL's SQL scripts fails it does not execute subsequent SQL scripts and immediately ansible stop anyone having code please share me

Copy link

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

@github-actions github-actions bot added the stale label Jun 22, 2024
@vz000
Copy link

vz000 commented Jul 17, 2024

Faced a similar issue, but in case someone else stumbles on this problem getting the same error message: make sure the right mysql packages are correctly installed.

@github-actions github-actions bot removed the stale label Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants