I've added a warning in the README which should prevent this type of issue 
from happening again to future users - at least those who will manage to 
read that sentence.. but I put it in uppercase bold just in case somebody 
wouldn't notice!

Federico


On Thursday, May 18, 2017 at 10:14:26 AM UTC+2, Federico Capoano wrote:
>
> The value of the domain name is automatically chosen as the postfix 
> hostname and since you are using an ip address instead of a domain name, 
> postfix complains, so you have to tell postfix to use "localhost" instead 
> of 10.0.0.44, you can do by modifying your playbook so it looks like the 
> following:
>
> - hosts: openwisp2
>   become: "{{ become | default('yes') }}"
>   roles:
>     - openwisp.openwisp2
>   vars:
>     postfix_myhostname: "localhost"
>
> Federico
>
> On Thursday, May 18, 2017 at 4:27:54 AM UTC+2, wylis.ho...@gmail.com 
> wrote:
>>
>> My server is ubuntu 16.04 and i ran this line
>>
>> sudo ansible-playbook -i hosts playbook_prod.yml -u wylis -k 
>> --ask-sudo-pass
>>
>> from my laptop (Mac OS X).  What does this error mean?
>>
>> TASK [Stouts.postfix : Configure postfix pt. 5] 
>> ***************************************************************************************
>> fatal: [10.0.0.44]: FAILED! => {"changed": true, "cmd": 
>> ["/usr/sbin/postmap", "/etc/postfix/generic"], "delta": "0:00:01.004583", 
>> "end": "2017-05-17 22:23:33.569335", "failed": true, "rc": 1, "start": 
>> "2017-05-17 22:23:32.564752", "stderr": "postmap: warning: valid_hostname: 
>> numeric hostname: 10.0.0.44\npostmap: fatal: file /etc/postfix/main.cf: 
>> parameter myhostname: bad parameter value: 10.0.0.44", "stderr_lines": 
>> ["postmap: warning: valid_hostname: numeric hostname: 10.0.0.44", "postmap: 
>> fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter 
>> value: 10.0.0.44"], "stdout": "", "stdout_lines": []}
>>
>> thanks
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to openwisp+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to