ansible_hacky_pki/example.yml

16 lines
334 B
YAML
Raw Normal View History

2021-09-08 15:59:32 +02:00
#!/usr/bin/env ansible-playbook
---
- hosts: all
roles:
- generate-cert
vars:
directory: /etc/nginx/certs/
cname: example.com
2021-09-20 14:11:58 +02:00
- hosts: all
tasks: Copy the CA certificate to remote host, for mutual SSL auth for instance
- name:
copy:
content: "{{ ca_cert }}"
dest: /etc/nginx/certs/ca.crt