如果我尝试访问具有 certbot 颁发的 debian 9 证书的 HTTPS 服务器,则会收到以下错误:
# curl -v https://hu.dbpedia.org/
* Trying 195.111.2.82...
* TCP_NODELAY set
* Connected to hu.dbpedia.org (195.111.2.82) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11): …Run Code Online (Sandbox Code Playgroud) 我正在尝试在条件块内插入条件块:
- block:
- postgresql_db: name={{ dbname }} state=absent
- postgresql_db: name={{ dbname }}
...
- block:
- get_url: url={{ remote_database_dump }} dest={{ local_database_dump }}
- command: pg_restore -d {{ dbname }} {{ local_database_dump }}
when remote_database_dump != ""
become: true
become_user: postgres
become_method: su
when: db_recreate == "true"
Run Code Online (Sandbox Code Playgroud)
但我收到一条ERROR! Syntax Error while loading YAML.消息。如果我删除它when remote_database_dump != "",它就可以正常工作。
这种嵌套可能吗?如果是,怎么办?