commit fc7d2dcd7b4a2d43af3ff70f42ae89924ce4b4bd
parent 078a847cf65271f9f3eab9881df359d37f3ed838
Author: Leah (ctucx) <leah@ctu.cx>
Date: Thu, 28 Jan 2021 23:31:41 +0100
parent 078a847cf65271f9f3eab9881df359d37f3ed838
Author: Leah (ctucx) <leah@ctu.cx>
Date: Thu, 28 Jan 2021 23:31:41 +0100
websites role: remove
4 files changed, 0 insertions(+), 98 deletions(-)
diff --git a/roles/websites/tasks/ctu.cx.yml b/roles/websites/tasks/ctu.cx.yml @@ -1,30 +0,0 @@ ---- - -- name: "Create directory: /var/lib/websites/ctu.cx" - file: - path: /var/lib/websites/ctu.cx - state: directory - owner: leah - group: nginx - -- name: copy vhost for ctu.cx into place - copy: - src: config-files/website-vhosts/ctu.cx.conf - dest: /etc/nginx/conf.d/ctu.cx.conf - mode: 0644 - owner: nginx - group: nginx - -- name: "[OpenRC] Restart service: nginx" - service: - name: nginx - state: restarted - when: - - ansible_service_mgr == "openrc" - -- name: "[systemd] Restart service: nginx" - service: - name: nginx - state: restarted - when: - - ansible_service_mgr == "systemd"
diff --git a/roles/websites/tasks/main.yml b/roles/websites/tasks/main.yml @@ -1,15 +0,0 @@ ---- -- include: ctu.cx.yml - tags: - - install_ctu.cx - when: system.hostname == "wanderduene" - -- include: repo.f2k1.de.yml - tags: - - install_repo.f2k1.de - when: system.hostname == "wanderduene" - -- include: photos.ctu.cx.yml - tags: - - install_photos.ctu.cx - when: system.hostname == "taurus"
diff --git a/roles/websites/tasks/photos.ctu.cx.yml b/roles/websites/tasks/photos.ctu.cx.yml @@ -1,30 +0,0 @@ ---- - -- name: "create directory: /var/lib/websites/photos.ctu.cx" - file: - path: /var/lib/websites/photos.ctu.cx - state: directory - owner: leah - group: nginx - -- name: copy vhost for photos.ctu.cx into place - copy: - src: config-files/website-vhosts/photos.ctu.cx.conf - dest: /etc/nginx/conf.d/photos.ctu.cx.conf - mode: 0644 - owner: nginx - group: nginx - -- name: "[OpenRC] Restart service: nginx" - service: - name: nginx - state: restarted - when: - - ansible_service_mgr == "openrc" - -- name: "[systemd] Restart service: nginx" - service: - name: nginx - state: restarted - when: - - ansible_service_mgr == "systemd"
diff --git a/roles/websites/tasks/repo.f2k1.de.yml b/roles/websites/tasks/repo.f2k1.de.yml @@ -1,23 +0,0 @@ ---- - -- name: copy vhost for repo.f2k1.de into place - copy: - src: config-files/website-vhosts/repo.f2k1.de.conf - dest: /etc/nginx/conf.d/repo.f2k1.de.conf - mode: 0644 - owner: nginx - group: nginx - -- name: "[OpenRC] Restart service: nginx" - service: - name: nginx - state: restarted - when: - - ansible_service_mgr == "openrc" - -- name: "[systemd] Restart service: nginx" - service: - name: nginx - state: restarted - when: - - ansible_service_mgr == "systemd"