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.


On Sat, Jun 7, 2014 at 5:01 PM, Francisco Reyes <[email protected]>
wrote:

> 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
> -----------
>
> failed: [t1] => {"failed": true, "parsed": false}
> invalid output was: Traceback (most recent call last):
> File
> "/root/.ansible/tmp/ansible-tmp-1402158888.34-20696508689981/portinstall",
> line 1425, in
> main()
> File
> "/root/.ansible/tmp/ansible-tmp-1402158888.34-20696508689981/portinstall",
> line 200, in main
> install_packages(module, pkgs, p["use_packages"])
> File
> "/root/.ansible/tmp/ansible-tmp-1402158888.34-20696508689981/portinstall",
> line 170, in install_packages
> matches = matching_packages(module, package)
> File
> "/root/.ansible/tmp/ansible-tmp-1402158888.34-20696508689981/portinstall",
> line 104, in matching_packages
> occurrences = int(parts[0])
> ValueError: invalid literal for int() with base 10: 'www/nginx'
>
> FATAL: all hosts have already failed -- aborting
>
> -----------
>
>
> Wondering if it is something on my side I need to change.. or if an actual
> issue with Ansible.. so figure would see how others are doing with
> ansible+portinstall module
>
>
> I think I tried also without the port hierarchy... like just "nginx" and I
> think I had the same results.
>
> Is there a way to save/view the temp file(s) ansible was trying to run?
>
> >>File
> "/root/.ansible/tmp/ansible-tmp-1402158888.34-20696508689981/portinstall",
> line 200, in main
>
>
> Any way to see/keep the files to see what it was trying to do?
>
> --
> 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].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/7cabb271-aa61-4fbf-a02a-d602c624841c%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/7cabb271-aa61-4fbf-a02a-d602c624841c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAMFyvFiffwSq0_sKieBYhgeWbEEiGXOuB7kmJXzoPNOZ6cw%2B3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to