--- # Deploys the menu app for one or more Sites. It lives here, beside the app it # deploys, and is run from this directory: # # make build-production TAG= (from the repo root) # ansible-playbook --inventory=hosts playbook.yml --limit hopsngrains # # One run deploys the Site: it starts the container and points the Site's web # address at it. Nothing older is kept serving, so there is no staged rollout — # deploying an earlier tag is the rollback. - hosts: menus become: true vars_files: - vars/default.yml pre_tasks: - name: Load the vars file this Site names in the inventory ansible.builtin.include_vars: file: '{{ var_file }}' when: var_file is defined roles: - network - menu-app - caddy