Ansible vs FreeBSD 10 port install

211 views
Skip to first unread message

Francisco Reyes

unread,
Jun 7, 2014, 6:01:19 PM6/7/14
to ansible...@googlegroups.com
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?

James Cammarata

unread,
Jun 7, 2014, 9:33:04 PM6/7/14
to ansible...@googlegroups.com
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.


--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7cabb271-aa61-4fbf-a02a-d602c624841c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Francisco Reyes

unread,
Jun 7, 2014, 9:37:33 PM6/7/14
to ansible...@googlegroups.com
If it is any easier.. I can get you a VM with FreeBSD 10..
Let me know if that would help.
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ansible-project/-xWj9noxk94/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAMFyvFiffwSq0_sKieBYhgeWbEEiGXOuB7kmJXzoPNOZ6cw%2B3w%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages