Create well-known directory

So close now
This commit is contained in:
Salt 2020-02-05 21:13:04 -06:00
parent 2437728f94
commit 9e14dc5426
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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