bertvv / ansible-role-mariadb

Install MariaDB on RHEL/CentOS 7 or Fedora.
https://galaxy.ansible.com/bertvv/mariadb/
Other
144 stars 108 forks source link

Fatal error usermod: user mysql is currently used by process #49

Open Pepan opened 3 years ago

Pepan commented 3 years ago

I used this ansible role few years ago. But today I updated this galaxy component and run for another project on same server. I ended with :

TASK [bertvv.mariadb : Create daemon user with specified uid] *************************************************************************************************************************************************************************************************************************************************************************************************
fatal: [81.2.216.251]: FAILED! => {"changed": false, "msg": "usermod: user mysql is currently used by process 5741\n", "name": "mysql", "rc": 8}

It is obvious that there will be running proces and also existing user ...

What should I do?

Pepan commented 3 years ago

I solved it by stopping mariadb server before running playbook. But it should do this role automatically I guess.