ī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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |