You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
---
|
|
|
|
- name: Create directory for selfsigned catch-all certificates
|
|
|
|
file:
|
|
|
|
name: "{{ nginx_catchall_ssl_directory }}"
|
|
|
|
state: directory
|
|
|
|
become: yes
|
|
|
|
tags:
|
|
|
|
- nginx
|
|
|
|
- nginx_catchall_vhost
|
|
|
|
|
|
|
|
- name: Generate private openssl key
|
|
|
|
openssl_privatekey:
|
|
|
|
path: "{{ nginx_catchall_privkey }}"
|
|
|
|
size: 2048
|
|
|
|
select_crypto_backend: cryptography
|
|
|
|
become: yes
|
|
|
|
tags:
|
|
|
|
- nginx
|
|
|
|
- nginx_catchall_vhost
|
|
|
|
|
|
|
|
- name: Generate Certificate Signing Request (CSR)
|
|
|
|
openssl_csr:
|
|
|
|
path: "{{ nginx_catchall_csr }}"
|
|
|
|
privatekey_path: "{{ nginx_catchall_privkey }}"
|
|
|
|
common_name: selfsigned
|
|
|
|
become: yes
|
|
|
|
tags:
|
|
|
|
- nginx
|
|
|
|
- nginx_catchall_vhost
|
|
|
|
|
|
|
|
- name: Generate a Self Signed OpenSSL certificate
|
|
|
|
openssl_certificate:
|
|
|
|
path: "{{ nginx_catchall_fullchain }}"
|
|
|
|
privatekey_path: "{{ nginx_catchall_privkey }}"
|
|
|
|
csr_path: "{{ nginx_catchall_csr }}"
|
|
|
|
provider: selfsigned
|
|
|
|
become: yes
|
|
|
|
tags:
|
|
|
|
- nginx
|
|
|
|
- nginx_catchall_vhost
|
|
|
|
|
|
|
|
- name: Create the nginx catch-all
|
|
|
|
template:
|
|
|
|
src: "{{ nginx_catchall_template }}"
|
|
|
|
dest: "{{ nginx_vhost_path }}/{{ nginx_catchall_vhost_name }}"
|
|
|
|
become: yes
|
|
|
|
tags:
|
|
|
|
- nginx
|
|
|
|
- nginx_catchall_vhost
|