From 19111f1216ddeb22b7a81a14e3ecbd836b2fb888 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 8 Dec 2023 18:24:45 +0100 Subject: [PATCH] renamed role, to make the purpose better visible --- README.md | 2 +- playbook-servers.yml | 2 +- roles/{nginx-redirect => nginx-domain-redirect}/README.md | 3 ++- roles/{nginx-redirect => nginx-domain-redirect}/meta/main.yml | 0 roles/{nginx-redirect => nginx-domain-redirect}/tasks/main.yml | 0 .../templates/redirect.domain.nginx.conf.j2 | 0 6 files changed, 4 insertions(+), 3 deletions(-) rename roles/{nginx-redirect => nginx-domain-redirect}/README.md (88%) rename roles/{nginx-redirect => nginx-domain-redirect}/meta/main.yml (100%) rename roles/{nginx-redirect => nginx-domain-redirect}/tasks/main.yml (100%) rename roles/{nginx-redirect => nginx-domain-redirect}/templates/redirect.domain.nginx.conf.j2 (100%) diff --git a/README.md b/README.md index 16eb586b..65f57b25 100644 --- a/README.md +++ b/README.md @@ -151,7 +151,7 @@ Focuses on web server roles and applications, covering SSL certificates, Nginx c - **[Nginx-Homepage](./roles/nginx-homepage/)**: Configures a homepage for Nginx. - **[Nginx-Https](./roles/nginx-https/)**: Enables HTTPS configuration for Nginx. - **[Nginx-Matomo-Tracking](./roles/nginx-matomo-tracking/)**: Integrates Matomo tracking with Nginx. -- **[Nginx-Redirect](./roles/nginx-redirect/)**: Manages URL redirects in Nginx. +- **[Nginx-Redirect](./roles/nginx-domain-redirect/)**: Manages URL redirects in Nginx. - **[Certbot Nginx](./roles/certbot-nginx/)**: Integrates Certbot with Nginx for SSL certificates. - **[Postfix](./roles/postfix/)**: Setup for the Postfix mail transfer agent. diff --git a/playbook-servers.yml b/playbook-servers.yml index a6b99990..f3ea0144 100644 --- a/playbook-servers.yml +++ b/playbook-servers.yml @@ -24,7 +24,7 @@ hosts: redirect become: true roles: - - role: nginx-redirect + - role: nginx-domain-redirect vars: domain_mappings: "{{redirect_domain_mappings}}" diff --git a/roles/nginx-redirect/README.md b/roles/nginx-domain-redirect/README.md similarity index 88% rename from roles/nginx-redirect/README.md rename to roles/nginx-domain-redirect/README.md index 79763e52..555494dc 100644 --- a/roles/nginx-redirect/README.md +++ b/roles/nginx-domain-redirect/README.md @@ -23,7 +23,8 @@ This Ansible role configures Nginx to perform 301 redirects from one domain to a ```yaml - hosts: servers roles: - - { role: nginx-redirect, domain_mappings: [ {source: 'example.com', target: 'newdomain.com'} ] } + - { role: nginx-domain-redirect, domain_mappings: [ {source: 'example.com', target: 'newdomain.com'} ] } +`````` ## Author Information This role was created in 2023 by Kevin Veen Birkenbach. \ No newline at end of file diff --git a/roles/nginx-redirect/meta/main.yml b/roles/nginx-domain-redirect/meta/main.yml similarity index 100% rename from roles/nginx-redirect/meta/main.yml rename to roles/nginx-domain-redirect/meta/main.yml diff --git a/roles/nginx-redirect/tasks/main.yml b/roles/nginx-domain-redirect/tasks/main.yml similarity index 100% rename from roles/nginx-redirect/tasks/main.yml rename to roles/nginx-domain-redirect/tasks/main.yml diff --git a/roles/nginx-redirect/templates/redirect.domain.nginx.conf.j2 b/roles/nginx-domain-redirect/templates/redirect.domain.nginx.conf.j2 similarity index 100% rename from roles/nginx-redirect/templates/redirect.domain.nginx.conf.j2 rename to roles/nginx-domain-redirect/templates/redirect.domain.nginx.conf.j2