This repository has been archived on 2020-05-07. You can view files and clone it, but cannot push or open issues or pull requests.
dokku-ansible-deploy/plays/postdeploy/lib/nginxd.yml

25 lines
544 B
YAML
Raw Normal View History

2020-04-14 09:35:45 +00:00
---
- name: Create nginx customisation directory
become: true
file:
path: "/home/dokku/{{ app }}/nginx.conf.d/"
state: directory
owner: dokku
group: dokku
- name: Copy over the nginx custom configuration
become: true
template:
src: "{{ item }}"
dest: "/home/dokku/{{ app }}/nginx.conf.d/{{ item }}"
owner: dokku
group: dokku
with_fileglob:
- "{{ app_config_root }}/nginx.d/*.conf"
- name: Reload nginx to enable custom configurations
become: true
service:
name: nginx
state: reloaded