diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-07-21 14:33:55 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-07-21 14:33:55 +0200 |
| commit | 44d7056b2a069b36077b716a32adfb5b978cd898 (patch) | |
| tree | 50995970f1ecac5ac8300d0216e04cadb95ca87b /roles/nginx/tasks | |
| parent | 5a677725003444d5fc02e4f754392bafaecbde2f (diff) | |
Fix nginx to use conventional ngix conf.d
Diffstat (limited to 'roles/nginx/tasks')
| -rw-r--r-- | roles/nginx/tasks/main.yml | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/roles/nginx/tasks/main.yml b/roles/nginx/tasks/main.yml index f78cd24b..7cb9b449 100644 --- a/roles/nginx/tasks/main.yml +++ b/roles/nginx/tasks/main.yml @@ -26,14 +26,11 @@ - "/etc/nginx/modules-enabled" - "/var/log/nginx" -- name: "Ensure nginx vhosts.d directory exists" +- name: "Remove default nginx server block shipped by package" become: true ansible.builtin.file: - path: "/etc/nginx/vhosts.d" - state: "directory" - owner: "root" - group: "root" - mode: "0755" + path: "/etc/nginx/conf.d/default.conf" + state: "absent" - name: "Check if SSL certificate exists" become: true |
