church-website/infra/ansible/playbooks/deploy-production.yml
Benno Tielen cb6e811c52
Some checks failed
Deploy / deploy (push) Has been cancelled
feature: infra
2026-08-17 15:48:55 +02:00

20 lines
527 B
YAML

---
- name: Deploy production environment
hosts: all
become: true
tasks:
- name: Pull {{ repo_branch }} branch
ansible.builtin.git:
repo: "{{ repo_url }}"
dest: "{{ repo_dir }}"
version: "{{ repo_branch }}"
force: true
accept_hostkey: true
- name: Build and deploy production
ansible.builtin.include_role:
name: app
tasks_from: deploy_env
vars:
env: "{{ app_environments | selectattr('name', 'equalto', 'production') | first }}"