Before we can use Ansible on an OpenBSD host, you will need some basic things in place.
Table of Contents
Follow our instructions if you haven’t already installed your basic OS configuration, with network access obviously.
Create the account that you wish to use for administrating your host(s). In our case, we already have enough accounts with sudo/root access. By reusing these accounts we can backtrace who/when ansible scripts were executed.
To simplify the process, we use SSH Key Access exclusively after the install.
Ansible uses Python for executing commands on the local host. Naturally, this means you have to install Python.
Ansible uses JSON to communicate between the host/server and the client. JSON was included into the Python Standard Library (PSL) in release 2.6. For earlier versions of Python you will need to install a JSON compatible with Ansible.