Question

I am trying to automate the nginx/passenger installer by running the following command:

passenger-install-nginx-module --auto --auto-download --extra-configure-flags=none --languages ruby

I am configuring my server using Ansible so have a task that runs that command. The task runs but never finishes. I cannot see if the installer is awaiting an answer for anything but my guess is that it may be but I don't know what?

I ran the command with --help which gave me a list of the flags to pass to the command which are all set up but it makes no difference.

Any ideas on what it may be waiting for?

The Ansible tasks is below:

- name: Passenger and Nginx
  shell: bash -lc "passenger-install-nginx-module --auto --auto-download --extra-configure-flags=none --languages ruby"

No correct solution

OTHER TIPS

it's got stuck at Where do you want to install Nginx to? It doesn't seem to be auto continuing like it should. Any ideas?

As in help, passenger-install-nginx-module seems need --prefix= instead of asking for it interactively

> passenger-install-nginx-module --help
Usage: passenger-install-nginx-module [options]

Options:
    --auto                       Automatically confirm 'Press ENTER to
                                 continue' prompts.
    --prefix=DIR                 Use the given Nginx install prefix instead
                                 of asking for it interactively.
    --auto-download              Download and install Nginx automatically,
                                 instead of asking interactively whether to
                                 download+install or to use an existing
                                 Nginx source directory.
    --extra-configure-flags=STRING
                                 Pass these extra flags to Nginx's
                                 'configure' script, instead of asking for
                                 it interactively. Specify 'none' if you
                                 do not want to pass additional flags but do
                                 not want this installer to ask
                                 interactively either.
    --languages NAMES            Comma-separated list of interested
                                 languages (e.g.
                                 'ruby,python,nodejs,meteor')
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top