mirror of
https://github.com/MatteZ02/infra.git
synced 2024-11-22 10:40:18 +00:00
Update
This commit is contained in:
parent
7106f0d962
commit
e3095be9d1
@ -100,7 +100,7 @@
|
|||||||
state: directory
|
state: directory
|
||||||
vars:
|
vars:
|
||||||
paths:
|
paths:
|
||||||
- /root/certs
|
- /root/certs/mkj
|
||||||
- /etc/letsencrypt/renewal-hooks/pre
|
- /etc/letsencrypt/renewal-hooks/pre
|
||||||
loop: "{{ paths }}"
|
loop: "{{ paths }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
@ -134,6 +134,26 @@
|
|||||||
tags:
|
tags:
|
||||||
- certbot
|
- certbot
|
||||||
|
|
||||||
|
- name: "Installer - Certbot - Self-Signed Certificates - Generate Private Key"
|
||||||
|
community.crypto.openssl_privatekey:
|
||||||
|
path: "/root/certs/mkj/privatekey.pem"
|
||||||
|
type: RSA
|
||||||
|
size: 2048
|
||||||
|
regenerate: never
|
||||||
|
|
||||||
|
- name: "Installer - Certbot - Self-Signed Certificates - Create Certificate Signing Request"
|
||||||
|
community.crypto.openssl_csr:
|
||||||
|
common_name: "{{ ansible_facts.fqdn }}"
|
||||||
|
privatekey_path: "/root/certs/mkj/privatekey.pem"
|
||||||
|
path: "/root/certs/mkj/csr.pem"
|
||||||
|
|
||||||
|
- name: "Installer - Certbot - Self-Signed Certificates - Generate Certificate"
|
||||||
|
community.crypto.x509_certificate:
|
||||||
|
path: "/root/certs/mkj/fullchain.pem"
|
||||||
|
privatekey_path: "/root/certs/mkj/privatekey.pem"
|
||||||
|
csr_path: "/root/certs/mkj/csr.pem"
|
||||||
|
provider: selfsigned
|
||||||
|
|
||||||
- name: "Installer - Certbot - Auth Hook"
|
- name: "Installer - Certbot - Auth Hook"
|
||||||
copy:
|
copy:
|
||||||
src: "../files/certbot/nginx.sh"
|
src: "../files/certbot/nginx.sh"
|
||||||
|
Loading…
Reference in New Issue
Block a user