Files
menu/ansible/playbook.yml
T
tanshu f2d8058456 Deploy in one run, with nothing older to preserve
There is no previous system kept serving, so the playbook no longer knows about
one: the retire flags, the temporary web address, the task that removed the old
nginx snippet and the task that stopped the old container are gone. One run
starts the container and points the Site's web address at it, and deploying an
earlier tag is the rollback. The vars lose vhost, retire_nginx_snippet,
retire_nginx_container and legacy_container; the Caddy role keeps only the
snippet upsert.

The deployment readme drops its staged-rollout sections and the glossary of words
that no longer exist, and the plan's sequence and the operating notes describe
the single run instead.
2026-09-22 23:27:17 +05:30

26 lines
765 B
YAML

---
# 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=<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