infra-faucet/ansible/roles/faucet-api/tasks/proxy.yml

14 lines
426 B
YAML

---
- name: 'Template proxy config: {{ faucet_cont_name }}'
template:
src: faucet-proxy.conf.j2
dest: '/etc/nginx/sites-available/{{ faucet_cont_name }}.conf'
notify: reload nginx
- name: 'Symlink proxy config: {{ faucet_cont_name }}'
file:
src: '/etc/nginx/sites-available/{{ faucet_cont_name }}.conf'
dest: '/etc/nginx/sites-enabled/{{ faucet_cont_name }}.conf'
state: link
notify: reload nginx