Create well-known directory
So close now
This commit is contained in:
parent
2437728f94
commit
9e14dc5426
@ -7,7 +7,7 @@
|
||||
update_cache: yes
|
||||
# One day
|
||||
cache_valid_time: 86400
|
||||
become: true
|
||||
become: yes
|
||||
- name: Install basic packages
|
||||
apt:
|
||||
name: "{{ packages }}"
|
||||
@ -15,7 +15,7 @@
|
||||
packages:
|
||||
- python-apt
|
||||
- vim
|
||||
become: true
|
||||
become: yes
|
||||
- name: Assure Cockpit user
|
||||
user:
|
||||
name: cockpit
|
||||
|
@ -63,6 +63,11 @@
|
||||
common_name: "{{ website_url }}"
|
||||
privatekey_path: /etc/pki/cert/private/account.key
|
||||
email_address: "rehashedsalt@cock.li"
|
||||
- name: Create well-known directory
|
||||
file:
|
||||
mode: "0644"
|
||||
path: "/var/www/html/.well-known/acme-challenge"
|
||||
state: directory
|
||||
- name: Create challenge for CSR
|
||||
acme_certificate:
|
||||
acme_directory: "https://acme-staging-v02.api.letsencrypt.org/directory"
|
||||
@ -87,4 +92,4 @@
|
||||
fullchain_dest: "/etc/pki/cert/crt/{{ website_url }}-fullchain.crt"
|
||||
chain_dest: "/etc/pki/cert/crt/{{ website_url }}-intermediate.crt"
|
||||
data: "{{ com_challenge }}"
|
||||
become: true
|
||||
become: yes
|
||||
|
Loading…
Reference in New Issue
Block a user