-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c87848e
commit f6fceb2
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
roles: | ||
- buildmaster | ||
- unacmetool | ||
- unnginx | ||
|
||
- hosts: buildslave | ||
become: yes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
- name: Create the webroot | ||
file: | ||
path: /srv/www | ||
state: directory | ||
owner: root | ||
group: root | ||
mode: 0755 | ||
|
||
- name: Disable nginx | ||
runit: | ||
name: nginx | ||
enabled: false | ||
|
||
- name: Unconfigure nginx firewall rules | ||
file: | ||
path: /etc/iptables.d/nginx.rules | ||
state: absent | ||
notify: | ||
- iptables | ||
|
||
- name: Unconfigure nginx firewall rules | ||
file: | ||
path: /etc/ip6tables.d/nginx.6rules | ||
state: absent | ||
notify: | ||
- iptables | ||
|
||
- name: Remove nginx files | ||
file: | ||
path: /etc/nginx | ||
state: absent | ||
|
||
- name: Remove nginx | ||
xbps: | ||
pkg: nginx | ||
state: present |