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 update_cache: yes
# One day # One day
cache_valid_time: 86400 cache_valid_time: 86400
become: true become: yes
- name: Install basic packages - name: Install basic packages
apt: apt:
name: "{{ packages }}" name: "{{ packages }}"
@ -15,7 +15,7 @@
packages: packages:
- python-apt - python-apt
- vim - vim
become: true become: yes
- name: Assure Cockpit user - name: Assure Cockpit user
user: user:
name: cockpit name: cockpit

View File

@ -63,6 +63,11 @@
common_name: "{{ website_url }}" common_name: "{{ website_url }}"
privatekey_path: /etc/pki/cert/private/account.key privatekey_path: /etc/pki/cert/private/account.key
email_address: "rehashedsalt@cock.li" 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 - name: Create challenge for CSR
acme_certificate: acme_certificate:
acme_directory: "https://acme-staging-v02.api.letsencrypt.org/directory" acme_directory: "https://acme-staging-v02.api.letsencrypt.org/directory"
@ -87,4 +92,4 @@
fullchain_dest: "/etc/pki/cert/crt/{{ website_url }}-fullchain.crt" fullchain_dest: "/etc/pki/cert/crt/{{ website_url }}-fullchain.crt"
chain_dest: "/etc/pki/cert/crt/{{ website_url }}-intermediate.crt" chain_dest: "/etc/pki/cert/crt/{{ website_url }}-intermediate.crt"
data: "{{ com_challenge }}" data: "{{ com_challenge }}"
become: true become: yes