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
  tags:
  - db

Le vendredi 3 janvier 2014 14:30:46 UTC+1, Michael DeHaan a écrit :
>
> 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 <[email protected] <javascript:>>wrote:
>
>> 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 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 <[email protected]> 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 can install this using OS packages (preferred) or pip.
>>>>>
>>>>>
>>>>>  
>>>>>
>>>>> On Thu, Jan 2, 2014 at 8:56 AM, nORKy <[email protected]> wrote:
>>>>>
>>>>>>  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 [FreeBSD]] on freebsd9
>>>>>> Type "help", "copyright", "credits" or "license" for more information.
>>>>>> >>> import MySQLdb
>>>>>> >>>
>>>>>>  
>>>>>> The target host is a FreeBSD-9.2-RELEASE
>>>>>>  
>>>>>> What is the problem ? thanks you
>>>>>>
>>>>>> -- 
>>>>>> You received this message because you are subscribed to the Google 
>>>>>> Groups "Ansible Project" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>> send an email to [email protected].
>>>>>> To post to this group, send email to [email protected].
>>>>>>
>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>> Michael DeHaan <[email protected]>
>>>>>
>>>>> CTO, AnsibleWorks, Inc.
>>>>> http://www.ansibleworks.com/
>>>>>
>>>>>   -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "Ansible Project" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>> To post to this group, send email to [email protected].
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>>
>>>
>>> -- 
>>> Michael DeHaan <[email protected]>
>>> CTO, AnsibleWorks, Inc.
>>> http://www.ansibleworks.com/
>>>
>>>   -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Ansible Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
> Michael DeHaan <[email protected] <javascript:>>
> CTO, AnsibleWorks, Inc.
> http://www.ansibleworks.com/
>
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to