This seems to have a non-interactive option.
Michael,
Thanks for the quick reply. I think the passenger-install-nginx-module was a poor example. What if there was an install or package that required interactive answers but did not have a headless option? How would one handle that in Ansible?
Btw, so far I’m loving it. It’s much easier to get things done than in Chef/Puppet. So far I don’t see any limitations but again I’m just getting started.
Thanks for all your help.
-James
@jamesjelinek
- name: Build nginx w passenger
shell: passenger-install-nginx-module --auto --auto-download --prefix=/opt/nginx creates=/opt/nginx
Awesome, thanks!
Would you mind sharing your full rails install playbook with me? You can email me directly if you like.
Thanks!
-James
this is it, i have a few more tasks but they have to do with custom stuff for our apps
This is great, I’m going to bookmark it. Thanks Brian!
I need to cleanup, but i’ll add this and more to my github ansible-pb repo.
If something goes interactive and can only be done that way, you would probably have to use expect.
That’s what I figured, luckily most packages have headless installs and options.
Thanks again, Michael.