|
|
@ -35,31 +35,31 @@
|
|
|
|
dest: /etc/cron.daily/renew-certs
|
|
|
|
dest: /etc/cron.daily/renew-certs
|
|
|
|
mode: +x
|
|
|
|
mode: +x
|
|
|
|
|
|
|
|
|
|
|
|
# - name: Set up nginx proxies
|
|
|
|
- name: Set up nginx proxies
|
|
|
|
# hosts: ramble-hard
|
|
|
|
hosts: ramble-hard
|
|
|
|
# vars_files:
|
|
|
|
vars_files:
|
|
|
|
# - ../vars.private
|
|
|
|
- ../vars.private
|
|
|
|
# tasks:
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
|
|
|
|
# - template:
|
|
|
|
- template:
|
|
|
|
# src: nginx.conf
|
|
|
|
src: nginx.conf
|
|
|
|
# dest: /etc/nginx/sites-available/{{ item.key }}.conf
|
|
|
|
dest: /etc/nginx/sites-available/{{ item.key }}.conf
|
|
|
|
# vars:
|
|
|
|
vars:
|
|
|
|
# server_name: "{{ item.value['subdomain'] | default(item.key) }}.{{ domain }}"
|
|
|
|
server_name: "{{ item.value['subdomain'] | default(item.key) }}.{{ domain }}"
|
|
|
|
# port: "{{ item.value['port'] }}"
|
|
|
|
port: "{{ item.value['port'] }}"
|
|
|
|
# loop: "{{ apps | dict2items }}"
|
|
|
|
loop: "{{ apps | dict2items }}"
|
|
|
|
# notify: Restart nginx
|
|
|
|
notify: Restart nginx
|
|
|
|
|
|
|
|
|
|
|
|
# - file:
|
|
|
|
- file:
|
|
|
|
# src: /etc/nginx/sites-available/{{ item.key }}.conf
|
|
|
|
src: /etc/nginx/sites-available/{{ item.key }}.conf
|
|
|
|
# dest: /etc/nginx/sites-enabled/{{ item.key }}.conf
|
|
|
|
dest: /etc/nginx/sites-enabled/{{ item.key }}.conf
|
|
|
|
# state: link
|
|
|
|
state: link
|
|
|
|
# loop: "{{ apps | dict2items }}"
|
|
|
|
loop: "{{ apps | dict2items }}"
|
|
|
|
# notify: Restart nginx
|
|
|
|
notify: Restart nginx
|
|
|
|
|
|
|
|
|
|
|
|
# handlers:
|
|
|
|
handlers:
|
|
|
|
|
|
|
|
|
|
|
|
# - name: Restart nginx
|
|
|
|
- name: Restart nginx
|
|
|
|
# service:
|
|
|
|
service:
|
|
|
|
# name: nginx
|
|
|
|
name: nginx
|
|
|
|
# state: restarted
|
|
|
|
state: restarted
|
|
|
|