diff --git a/ansible/build.yml b/ansible/build.yml index 4f194f80..25dd4493 100644 --- a/ansible/build.yml +++ b/ansible/build.yml @@ -6,6 +6,7 @@ roles: - buildmaster - unacmetool + - unnginx - hosts: buildslave become: yes diff --git a/ansible/roles/unnginx/tasks/main.yml b/ansible/roles/unnginx/tasks/main.yml new file mode 100644 index 00000000..c0ea5cb4 --- /dev/null +++ b/ansible/roles/unnginx/tasks/main.yml @@ -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