Moved roles to subdirectory
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: restart apache
|
||||
service:
|
||||
name: apache2
|
||||
state: restarted
|
||||
- name: reload apache
|
||||
service:
|
||||
name: apache2
|
||||
state: reloaded
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
dependencies:
|
||||
- role: common
|
||||
@@ -0,0 +1,27 @@
|
||||
---
|
||||
- name: install apache 2
|
||||
apt:
|
||||
name: apache2
|
||||
state: latest
|
||||
update_cache: yes
|
||||
tags:
|
||||
- apache
|
||||
- name: allow apache through firewall
|
||||
ufw:
|
||||
name: Apache Full
|
||||
rule: allow
|
||||
- name: enable mods
|
||||
block:
|
||||
- name: enable proxy
|
||||
command:
|
||||
cmd: a2enmod proxy
|
||||
- name: enable proxy_wstunnel
|
||||
command:
|
||||
cmd: a2enmod proxy_wstunnel
|
||||
- name: enable proxy_http
|
||||
command:
|
||||
cmd: a2enmod proxy_http
|
||||
- name: enable ssl
|
||||
command:
|
||||
cmd: a2enmod ssl
|
||||
notify: restart apache
|
||||
Reference in New Issue
Block a user