Skip to content
Paul Mackay edited this page Jun 30, 2016 · 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 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

Or on Vagrant (overriding the default:

ansible-playbook -i inventory/dev --e user=vagrant 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