eletrotupi / tcc/ ansible/deploy.yml3a9bb1a4b14edcfdaa020cfe24a371c731f83cc0
458 B | 18 lines Raw
1
---
2
# ansible/deploy.yml
3
# Publishes the nginx vhost (two-phase around the ACME certificate)
4
#
5
#   ansible-playbook -i inventory/hosts.yml deploy.yml --ask-become-pass
6

7
- name: Configure nginx
8
  hosts: vps
9
  become: yes
10
  become_method: doas
11
  # Reload even if an earlier task failed, so a late failure cannot leave the
12
  # vhost changed but nginx still serving the old config
13
  force_handlers: true
14
  vars_files:
15
    - vars/vhosts.yml
16

17
  roles:
18
    - nginx