fix ansible 2.8 bool vars
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
79bfad4644
commit
96fb7fb036
@ -8,7 +8,7 @@ server {
|
||||
listen 80;
|
||||
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;
|
||||
{% else %}
|
||||
location / {
|
||||
@ -22,7 +22,7 @@ server {
|
||||
{% endif %}
|
||||
}
|
||||
|
||||
{% if droneci_nginx_tls_enabled | bool %}
|
||||
{% if droneci_nginx_tls_enabled %}
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name {{ droneci_server_name | urlsplit('hostname') }};
|
||||
|
@ -9,7 +9,7 @@ services:
|
||||
ports:
|
||||
- {{ droneci_server_exposed_ip + ':' if droneci_server_exposed_ip is defined else '' }}{{ droneci_server_exposed_port }}:80
|
||||
volumes:
|
||||
{% if not droneci_postgres_enabled | bool %}
|
||||
{% if not droneci_postgres_enabled %}
|
||||
- droneserver-data:/var/lib/drone/
|
||||
{% endif %}
|
||||
{% if droneci_license_key is defined %}
|
||||
@ -33,11 +33,11 @@ services:
|
||||
- DRONE_LOGS_COLOR=true
|
||||
- DRONE_LOGS_PRETTY=true
|
||||
- DRONE_TLS_AUTOCERT=false
|
||||
{% if droneci_postgres_enabled | bool %}
|
||||
{% if droneci_postgres_enabled %}
|
||||
- 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 }}
|
||||
{% endif %}
|
||||
{% if droneci_gitea_enabled | bool %}
|
||||
{% if droneci_gitea_enabled %}
|
||||
- DRONE_GITEA_SERVER={{ droneci_gitea_server }}
|
||||
- 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 %}
|
||||
@ -85,7 +85,7 @@ services:
|
||||
mem_reservation: {{ droneci_agent_memory_reservation }}
|
||||
{% endif %}
|
||||
|
||||
{% if not droneci_postgres_enabled | bool %}
|
||||
{% if not droneci_postgres_enabled %}
|
||||
volumes:
|
||||
droneserver-data:
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user