Just filled a bug, https://github.com/ansible/ansible/issues/7691, and was wondering if others are able to have ansible work with FreeBSD to install ports.
So far the two ports I needed ansible to install so far both failed; apache 2.4 and nginx.
For simpler programs, or programs that the defaults are ok I have been successfully using the pkg module
For example when I try this
portinstall: name=www/nginx
I get
Thanks for reporting this, I’m grabbing the FreeBSD 10 ISO now to see if I can reproduce this. We always consider any traceback a bug, regardless of the cause, but based on the above, this is most likely caused by a change in the output format of the command the module is running to see what packages are installed already.
If it is any easier.. I can get you a VM with FreeBSD 10..
Let me know if that would help.