-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi everyone,

as I got no responses, I'll keep the full quote.

No one provisioning FreeBSD machines anymore? Or is this working for
everybody else, but not for me?

Thanks,
Johannes

On 10.02.16 Johannes Kastl wrote:
> Hi everyone,
> 
> I found some nice articles how to bootstrap FreeBSD machines
> with ansible, as they lack a python install by default. Seems 
> bootstrapping pkg and installing python seems to be enough.
> 
> http://lampros.chaidas.com/index.php?controller=post&action=view&id_
po
>
> 
st=56
> https://blog.codeways.org/ansible-freebsd/ 
> https://docs.ansible.com/ansible/intro_bsd.html
> 
> But when using these kind of commands with ansible 2.0 from a
> OSX machine, the command always hangs. When killing the process
> on the freebsd machine, I get output similar to this:
> 
>> ansible -vvv -k -u root XYZ -m raw -a 'env
>> ASSUME_ALWAYS_YES=YES /usr/sbin/pkg bootstrap -f' SSH password:
>> <XYZ> ESTABLISH CONNECTION FOR USER: root on PORT 22 TO
>> freebsdmitnat
> [...]
>> <XYZ> EXEC /usr/sbin/pkg bootstrap -f XYZ | FAILED | rc=143 >> 
>> The package management tool is not yet installed on your
>> system. Do you want to fetch and install it now? [y/N]:
>> Beendet
> 
> Apparently the ASSUME_ALWAYS_YES variable does not get set, and
> thus the commands ask for confirmation (last two lines of
> output). When calling the whole 'env ... -f' command on the
> freebsd machine, this works like a charm.
> 
> I also tried using root, using a user via sudo or su, but each
> time the same behaviour.
> 
> Question: Is this a (known) regression with ansible 2.0 or
> earlier? All the articles are a little bit old, maybe this has
> changed in the meantime?
> 
> Anyone having a solution?
> 
> Setting ansible_shell_type to csh via host_vars/group_vars/...
> does not work.
> 
> Thanks in advance,
> 
> Johannes
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/

iEYEARECAAYFAlbExJgACgkQzi3gQ/xETbLaiwCeLD5tEIWGXd8Y3IRgT4M8Zbh0
cC4An0vjf/QG+QcES2TrmkaHiiNNct+Q
=5E3Y
-----END PGP SIGNATURE-----

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/56C4C49D.3040907%40ojkastl.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to