Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Feb 2015 15:32:35 -0600
From:      Adam Vande More <amvandemore@gmail.com>
To:        Matthew Pherigo <hybrid120@gmail.com>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Skipping or pre-setting the options in a package installation? (bsdstats)
Message-ID:  <CA%2BtpaK0Gn0gGjvGOLpd2me5EkbCOEVHXb1Q9zD_wTYQ8pPTG4A@mail.gmail.com>
In-Reply-To: <C0DDC886-45E4-41B7-B4FD-7108FE746B30@gmail.com>
References:  <C0DDC886-45E4-41B7-B4FD-7108FE746B30@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 2, 2015 at 1:45 PM, Matthew Pherigo <hybrid120@gmail.com> wrote:

> Hi all,
>
> I use Ansible to administrate FreeBSD machines, and every time I install a
> pkg(8) that prompts for options (like bsdstats, which asks some simple
> yes/no questions), the install stops and waits for input that will never
> arrive. Though I'm sure that something can be improved about how Ansible
> handles this situation, I'm wondering how this can be automated or skipped
> in the first place. Perhaps there's an environment variable like
> $ALWAYS_ASSUME_YES that chooses the defaults that come with the package
> automatically?
>
> Thanks,
> --Matt
>

You can use expect/autoexpect to automate interactive cli apps.



-- 
Adam



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BtpaK0Gn0gGjvGOLpd2me5EkbCOEVHXb1Q9zD_wTYQ8pPTG4A>