You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
334 B
YAML

#!/usr/bin/env ansible-playbook
---
- hosts: all
roles:
- generate-cert
vars:
directory: /etc/nginx/certs/
cname: example.com
- 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