If there are problems with local connections, using login_unix_socket=/path/to/mysqld/socket instead of login_host=localhost might help. If none are present, the module will attempt to read the credentials from ~/.my.cnf, and finally fall back to using the MySQL default login of ‘root’ with no password. īoth login_password and login_user are required when you are passing credentials. If you have trouble, it may help to force Ansible to use the Python interpreter you need by specifying ansible_python_interpreter. If ansible discovers and uses Python 2, you need to install the Python 2 version of either PyMySQL or MySQL-python. For example if ansible discovers and uses Python 3, you need to install the Python 3 version of PyMySQL or mysqlclient. You can also use dnf install python2-PyMySQL for newer versions of Fedora see .īe sure you have mysqlclient, PyMySQL, or MySQLdb library installed on the target machine for the Python interpreter Ansible discovers. The Python package may be installed with apt-get install python-pymysql (Ubuntu see ) or yum install python2-PyMySQL (RHEL/CentOS/Fedora see ). Requires the PyMySQL (Python 2.7 and Python 3.X) or MySQL-python (Python 2.X) package installed on the remote host. This module is not idempotent when state is import, and will import the dump file each time if run more than once. Requires the mysql and mysqldump binaries on the remote host. Controlling how Ansible behaves: precedence rules.Collections in the Theforeman Namespace.Collections in the Telekom_mms Namespace.Collections in the T_systems_mms Namespace.Collections in the Servicenow Namespace.Collections in the Purestorage Namespace.Collections in the Openvswitch Namespace.Collections in the Netapp_eseries Namespace.Collections in the Kubernetes Namespace. Collections in the Junipernetworks Namespace.Collections in the F5networks Namespace.Collections in the Containers Namespace.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |