0.1.9-DEV-20191106-202848
------------------------- * ADD: - gitea.thezengarden.net proxy site - added set_fact define to consolodate packages to install based on distribution - added git clone section to pull in le ssl certs via gitlab
This commit is contained in:
parent
358c713dee
commit
86f6a5cfcc
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
proxy_package_list : ['nginx','aptitude','git']
|
||||||
proxy_site_conf_dir : /etc/nginx/conf.d
|
proxy_site_conf_dir : /etc/nginx/conf.d
|
||||||
proxy_site_file : "{{ proxy_site_conf_dir }}/zen_proxy.conf"
|
proxy_site_file : "{{ proxy_site_conf_dir }}/zen_proxy.conf"
|
||||||
proxy_site_version : 1.8
|
proxy_site_version : 1.8
|
||||||
|
@ -14,6 +14,13 @@ proxy_sites:
|
|||||||
max_upload : "{{ proxy_default_max_upload }}"
|
max_upload : "{{ proxy_default_max_upload }}"
|
||||||
|
|
||||||
|
|
||||||
|
gitea.thezengarden.net:
|
||||||
|
proto : http
|
||||||
|
dest : docker.thezengarden.net
|
||||||
|
port : 3000
|
||||||
|
max_upload : "{{ proxy_default_max_upload }}"
|
||||||
|
|
||||||
|
|
||||||
hastebin.thezengarden.net:
|
hastebin.thezengarden.net:
|
||||||
proto : http
|
proto : http
|
||||||
dest : docker.thezengarden.net
|
dest : docker.thezengarden.net
|
||||||
|
@ -1,19 +1,15 @@
|
|||||||
---
|
---
|
||||||
# tasks file for zen_rev_proxy
|
# tasks file for zen_rev_proxy
|
||||||
|
- name: set up package list
|
||||||
- name: install nginx/aptitude for debian nodes
|
set_fact:
|
||||||
package:
|
proxy_package_list: ['nginx','git']
|
||||||
name : ['nginx','aptitude']
|
|
||||||
state : present
|
|
||||||
when : ansible_distribution == "Debian"
|
|
||||||
|
|
||||||
|
|
||||||
- name: install nginx for centos nodes
|
|
||||||
package:
|
|
||||||
name : nginx
|
|
||||||
state : present
|
|
||||||
when: ansible_distribution == "CentOS"
|
when: ansible_distribution == "CentOS"
|
||||||
|
|
||||||
|
- name: install proxy packages
|
||||||
|
package:
|
||||||
|
name : "{{ proxy_package_list }}"
|
||||||
|
state : present
|
||||||
|
|
||||||
|
|
||||||
- name: enable nginx at boot time
|
- name: enable nginx at boot time
|
||||||
service:
|
service:
|
||||||
@ -36,6 +32,12 @@
|
|||||||
mode : 0755
|
mode : 0755
|
||||||
|
|
||||||
|
|
||||||
|
- name: clone ssl certs
|
||||||
|
git:
|
||||||
|
repo: git@gitlab.thezengarden.net:zen/le-ssl-certs.git
|
||||||
|
dest: "{{ proxy_site_ssl_directory }}"
|
||||||
|
|
||||||
|
|
||||||
- name: write configuration file(s)
|
- name: write configuration file(s)
|
||||||
template:
|
template:
|
||||||
src : proxy_site.j2
|
src : proxy_site.j2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user