Skip to content
Maikel edited this page Jul 16, 2018 · 20 revisions

Provisioning is the process of configuring a server with the software required to run Open Food Network.

The provision.yml playbook installs packages such as curl and git, then installs:

Running Ansible playbooks

Add -vvvv for greater debug output.

Default user

Ansible needs at least one user created on the system so that it can run and install software as that user. An ofn-admin user account is now created at the start of the provisioning playbook.

Run the playbook default_user first of all to create the ofn-admin user and copy the SSH keys.

ansible-playbook playbooks/default_user.yml --limit=staging

Run the site install playbook

Run the provisioning and deploy plays with the site.yml playbook. The inventory/hosts file is used by default (defined in ansible.cfg):

ansible-playbook --limit=au-staging site.yml

This step can take a long time. And you might need to tweak your SSH configuration to prevent timeouts.

Next: Administration of your application server