From owner-freebsd-doc@FreeBSD.ORG Tue Jun 24 05:51:35 2014 Return-Path: Delivered-To: freebsd-doc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 851313D2 for ; Tue, 24 Jun 2014 05:51:35 +0000 (UTC) Received: from omr-m09.mx.aol.com (omr-m09.mx.aol.com [64.12.143.82]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4548120CF for ; Tue, 24 Jun 2014 05:51:34 +0000 (UTC) Received: from mtaout-aah01.mx.aol.com (mtaout-aah01.mx.aol.com [172.27.1.141]) by omr-m09.mx.aol.com (Outbound Mail Relay) with ESMTP id 9216270000090 for ; Tue, 24 Jun 2014 01:45:55 -0400 (EDT) Received: from [192.168.2.3] (c-67-183-176-98.hsd1.wa.comcast.net [67.183.176.98]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mtaout-aah01.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id 0ED2C38000089 for ; Tue, 24 Jun 2014 01:45:54 -0400 (EDT) Message-ID: <53A9108F.5050406@aim.com> Date: Mon, 23 Jun 2014 22:45:51 -0700 From: Lampros Chaidas User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-doc@FreeBSD.org Subject: can't find any reference to 'env ASSUME_ALWAYS_YES=YES' for pkg x-aol-global-disposition: G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com; s=20121107; t=1403588755; bh=S4hVACixzpqc3G7p+tl1nDn8JeRq8K2iK0heLnxwlb8=; h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type; b=W7GfkBTmqwCX975DwIMty/et101dVcGQF1tf0UCJZ5fxKCUp1MgvtEGm5H0hbiJJ9 7cPG7VWS6zW4rukuweQ3gLS57rPzBXIUAaQ2LAAwNBTC2kOwQih5kaywHx8zzajTwx 9Bn3A+Ce8w1djjUHc6ydP+lBFTfihz2sUL6EK/Ns= x-aol-sid: 3039ac1b018d53a910925815 X-AOL-IP: 67.183.176.98 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18 X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jun 2014 05:51:35 -0000 Hi there, I was looking for a way to bootstrap pkg automatically for use with Ansible but things like this would fail: ansible all -m raw -a 'yes | pkg info' 192.168.2.16 | FAILED | rc=1 >> The package management tool is not yet installed on your system. Do you want to fetch and install it now? [y/N]: The problem wasn't Ansible though as I tried the command 'yes | pkg info' locally and it still wouldn't work. After lots of Googling I found this: https://dan.langille.org/2013/12/06/bootstrapping-installing-pkg-on-freebsd-unattended-and-without-answering-yes I tried the following: ansible all -m raw -a 'env ASSUME_ALWAYS_YES=YES pkg bootstrap' which worked flawlessly. Now the issue I have is that I could not find a reference to 'env ASSUME_ALWAYS_YES' in either the handbook (http://www.freebsd.org/doc/handbook/pkgng-intro.html) or in the man pages: http://www.freebsd.org/cgi/man.cgi?query=pkg&sektion=7 My questions are: 1. Is there another way of doing this? 2. If not, can a reference/note be added in one of the above mentioned pages ? I think this is a pretty important piece of information to be left out. Many thanks, - Lampros