Browse Source

roles/nginx: no tag on service and server_name explicit

Do not apply tag `packages` to role `service`. Tags are already
applied inside the role. If we apply the tag `package` at the role
level handlers defined inside the role (restart, reload) are not
available in the play!
python3
Zolfa 4 years ago
parent
commit
43291bb572
Signed by: zolfa GPG Key ID: E1A43B038C4D6616
2 changed files with 2 additions and 2 deletions
  1. +0
    -2
      roles/nginx/tasks/main.yaml
  2. +2
    -0
      roles/nginx/templates/base.j2

+ 0
- 2
roles/nginx/tasks/main.yaml View File

@ -5,8 +5,6 @@
service_name: 'nginx'
service_packages:
- 'nginx'
tags:
- 'packages'
- name: 'disable nginx default configuration'
file:


+ 2
- 0
roles/nginx/templates/base.j2 View File

@ -12,6 +12,8 @@ server {
real_ip_header proxy_protocol;
{% endif %}
server_name {{ server_fqdn }};
# Do not advertise nginx version number
server_tokens off;


Loading…
Cancel
Save