0.1.0-DEV-20191030-122725

-------------------------
    * INITIAL:
      - initial commit
This commit is contained in:
2019-10-30 00:27:10 -04:00
commit c7ad8909d8
13 changed files with 519 additions and 0 deletions

46
tasks/main.yml Normal file
View File

@ -0,0 +1,46 @@
---
# tasks file for zen_rev_proxy
- name: install nginx/aptitude
package:
name : ['nginx','aptitude']
state : present
force_apt_get: True
- name: enable nginx at boot time
service:
name : nginx
enabled : yes
when: ansible_virtualization_type != "docker"
- name: create conf.d directory
file:
path : "{{ proxy_site_conf_dir }}"
state : directory
mode : 0755
- name: create log directory
file:
path : "{{ proxy_site_log_path }}"
state : directory
mode : 0755
- name: write configuration file(s)
template:
src : proxy_site.j2
dest : "{{ proxy_site_conf_dir }}/{{ item.key }}.conf"
mode : 0644
with_dict:
- "{{ proxy_sites }}"
notify: restart nginx
- name: start nginx
service:
name : nginx
state : started
when: ansible_virtualization_type != "docker"