我有一个CloudFront发行版,我想使用自定义证书使用SSL进行设置.
我们想要使用我们已经上传到IAM的SSL证书(我们目前正在使用一些ELB),但它不会让我们选择该选项(证书应该是下拉列表)是空的).
有任何想法吗?根据官方文件,这应该是一个有效的选择
PS:我们不想使用aws证书管理员提供的证书
我在 Ansible playbook 中有一个任务,该任务应该迭代用户列表并执行 lineinfile 以启用对 postgress 数据库的访问:
- name: Postgres localhost access
lineinfile:
dest: "{{postgres_dest}}/data/pg_hba.conf"
line: "host all {{item.user}} 127.0.0.1/32 trust"
regexp: "^host[\s\t]*all[\s\t]*{{item.user}}[\s\t]*127.0.0.1/32[\s\t]*trust"
insertbefore: EOF
with_items: "{{postgres_users}}"
notify: postgres reload
tags:
- postgres
- postgres_hba
Run Code Online (Sandbox Code Playgroud)
我遇到的问题是 ansible 认为{{item.user}}没有被 转义"",这实际上是不正确的,因为这会由于""整行的扩大。我得到的确切错误:
Syntax Error while loading YAML script, jenkins.yml
Note: The error may actually appear before this position: line 156, column 9
line: "host all {{item.user}} 127.0.0.1/32 trust"
regexp: "^host[\s\t]*all[\s\t]*{{item.user}}[\s\t]*127.0.0.1/32[\s\t]*trust"
^
We could be wrong, but …Run Code Online (Sandbox Code Playgroud)