Ansible is agentless by default, however, it requires Python on managed nodes. Only the :ref:`raw <raw_module>` module will operate without Python. Although this module can be used to bootstrap Ansible and install Python on BSD variants (see below), it is very limited and the use of Python is required to make full use of Ansible's features.
Ansible is agentless by default, however, it requires Python on managed nodes. Only the :ref:`raw <raw_module>` module will operate without Python. Although this module can be used to bootstrap Ansible and install Python on BSD variants (see below), it is very limited and the use of Python is required to make full use of Ansible's features.
The following example installs Python 2.7 which includes the json library required for full functionality of Ansible.
The following example installs Python which includes the json library required for full functionality of Ansible.
On your control machine you can execute the following for most versions of FreeBSD:
On your control machine you can execute the following for most versions of FreeBSD:
..code-block:: bash
..code-block:: bash
@ -37,7 +37,7 @@ Or for OpenBSD:
..code-block:: bash
..code-block:: bash
ansible -m raw -a "pkg_add python%3.7"
ansible -m raw -a "pkg_add python%3.8"
Once this is done you can now use other Ansible modules apart from the ``raw`` module.
Once this is done you can now use other Ansible modules apart from the ``raw`` module.
@ -56,7 +56,7 @@ To support a variety of Unix-like operating systems and distributions, Ansible c
If you use additional plugins beyond those bundled with Ansible, you can set similar variables for ``bash``, ``perl`` or ``ruby``, depending on how the plugin is written. For example:
If you use additional plugins beyond those bundled with Ansible, you can set similar variables for ``bash``, ``perl`` or ``ruby``, depending on how the plugin is written. For example: