fix ansible 2.8 bool vars
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-06-10 14:09:49 +02:00
parent 79bfad4644
commit 96fb7fb036
2 changed files with 6 additions and 6 deletions

View File

@ -8,7 +8,7 @@ server {
listen 80; listen 80;
server_name {{ droneci_server_name | urlsplit('hostname') }}; server_name {{ droneci_server_name | urlsplit('hostname') }};
{% if droneci_nginx_tls_enabled | bool %} {% if droneci_nginx_tls_enabled %}
return 301 https://$server_name$request_uri; return 301 https://$server_name$request_uri;
{% else %} {% else %}
location / { location / {
@ -22,7 +22,7 @@ server {
{% endif %} {% endif %}
} }
{% if droneci_nginx_tls_enabled | bool %} {% if droneci_nginx_tls_enabled %}
server { server {
listen 443 ssl; listen 443 ssl;
server_name {{ droneci_server_name | urlsplit('hostname') }}; server_name {{ droneci_server_name | urlsplit('hostname') }};

View File

@ -9,7 +9,7 @@ services:
ports: ports:
- {{ droneci_server_exposed_ip + ':' if droneci_server_exposed_ip is defined else '' }}{{ droneci_server_exposed_port }}:80 - {{ droneci_server_exposed_ip + ':' if droneci_server_exposed_ip is defined else '' }}{{ droneci_server_exposed_port }}:80
volumes: volumes:
{% if not droneci_postgres_enabled | bool %} {% if not droneci_postgres_enabled %}
- droneserver-data:/var/lib/drone/ - droneserver-data:/var/lib/drone/
{% endif %} {% endif %}
{% if droneci_license_key is defined %} {% if droneci_license_key is defined %}
@ -33,11 +33,11 @@ services:
- DRONE_LOGS_COLOR=true - DRONE_LOGS_COLOR=true
- DRONE_LOGS_PRETTY=true - DRONE_LOGS_PRETTY=true
- DRONE_TLS_AUTOCERT=false - DRONE_TLS_AUTOCERT=false
{% if droneci_postgres_enabled | bool %} {% if droneci_postgres_enabled %}
- DRONE_DATABASE_DRIVER=postgres - DRONE_DATABASE_DRIVER=postgres
- DRONE_DATABASE_DATASOURCE=postgres://{{ droneci_postgres_user.name }}:{{ droneci_postgres_user.password }}@{{ droneci_postgres_server }}/{{ droneci_postgres_db.name }}?sslmode={{ droneci_postgres_ssl_mode }} - DRONE_DATABASE_DATASOURCE=postgres://{{ droneci_postgres_user.name }}:{{ droneci_postgres_user.password }}@{{ droneci_postgres_server }}/{{ droneci_postgres_db.name }}?sslmode={{ droneci_postgres_ssl_mode }}
{% endif %} {% endif %}
{% if droneci_gitea_enabled | bool %} {% if droneci_gitea_enabled %}
- DRONE_GITEA_SERVER={{ droneci_gitea_server }} - DRONE_GITEA_SERVER={{ droneci_gitea_server }}
- DRONE_GITEA_SKIP_VERIFY={{ droneci_gitea_skip_verify | lower }} - DRONE_GITEA_SKIP_VERIFY={{ droneci_gitea_skip_verify | lower }}
{% if droneci_gitea_oauth_client_id is defined and droneci_gitea_oauth_client_secret is defined %} {% if droneci_gitea_oauth_client_id is defined and droneci_gitea_oauth_client_secret is defined %}
@ -85,7 +85,7 @@ services:
mem_reservation: {{ droneci_agent_memory_reservation }} mem_reservation: {{ droneci_agent_memory_reservation }}
{% endif %} {% endif %}
{% if not droneci_postgres_enabled | bool %} {% if not droneci_postgres_enabled %}
volumes: volumes:
droneserver-data: droneserver-data:
{% endif %} {% endif %}