Basic sequence to bootstrap.
Before we can use Ansible on an OpenBSD host, you will need some basic things in place.
Follow our instructions if you haven’t already installed your basic OS configuration, with network access obviously.
Create Ansible User
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.
Ensure SSH Public Key is installed
To simplify the process, we use SSH Key Access exclusively after the install.
OpenBSD 5.8 ships with sudo in ports. If you have OpenBSD 5.8 or later installed, either install sudo from ports or determine how you can get the same features using doas
Ansible uses Python for executing commands on the local host. Naturally, this means you have to install Python.
Python 2.6 or later.
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.