On my freebsd host "pkg install Py27èMySQLdb-1.2.3_2"
My task :
- name: create db
mysql_db:
name: "{{ item.1 }}"
login_host: "myhost"
login_password: "mypassword"
login_user:"root"
state: present
with_subelements:
- users
- db
You don't want the traceback, proper error handling is better.
Please show the steps you have taken to have the module installed on the
remote host, and the snippet of your playbook that uses it.
On Fri, Jan 3, 2014 at 8:19 AM, nORKy wrote:
> ok, so the module is installed on my remote host
ok, so the module is installed on my remote host.
How can I have the traceback ? The module works manually not with ansible.
Le vendredi 3 janvier 2014 13:57:28 UTC+1, Michael DeHaan a écrit :
>
> The module is required where the task is being run, which is likely the
> remote host.
>
> "There is
The module is required where the task is being run, which is likely the
remote host.
"There is no exception."
Yep, this is what I'd expect too! that means we are catching the error and
presenting you a human readable warning instead of a traceback.
On Fri, Jan 3, 2014 at 2:45 AM, nORKy wrote
I installed. Look my import exemple. There is no exception.
I said 'target' host but I installed on the 'server' host too.
Le jeudi 2 janvier 2014 22:49:08 UTC+1, Michael DeHaan a écrit :
>
> The problem is that you need to install the python mysqldb module to use
> the Ansible module.
>
> You ca
The problem is that you need to install the python mysqldb module to use
the Ansible module.
You can install this using OS packages (preferred) or pip.
On Thu, Jan 2, 2014 at 8:56 AM, nORKy wrote:
> Hi,
>
> I have a problem with ansible 1.4.1 and 1.4.3.
>
> When I start my playbook with a My
Hi,
I have a problem with ansible 1.4.1 and 1.4.3.
When I start my playbook with a MySQL_db task, it says:
> the python mysqldb module is required
But, in the target host, the module is present :
$ python
Python 2.7.6 (default, Jan 2 2014, 13:21:14)
[GCC 4.2.1 20070831 patched [FreeBS