@ -50,7 +50,7 @@
- name: "Implement http-01 challenge files"
copy:
content: "{{ acme_challenge_domain['challenge_data'][item]['http-01']['resource_value'] }}"
dest: "/var/www/html/{{ acme_challenge_domain['challenge_data'][item]['http-01']['resource'] }}"
dest: "/var/www/html/{{ site_url }}/{{ acme_challenge_domain['challenge_data'][item]['http-01']['resource'] }}"
owner: root
group: root
mode: u=rw,g=r,o=r
@ -5,7 +5,7 @@
- name: Get LetsEncrypt Certificates
import_tasks: letsencrypt.yml
when: (stat_results.stat.mtime is defined and (ansible_date_time.epoch|int - stat_results.stat.mtime) > (90 * 60 * 60 * 24))
when: (stat_results.stat.mtime is undefined or (ansible_date_time.epoch|int - stat_results.stat.mtime) > (90 * 60 * 60 * 24))
- name: Copy Apache config
template:
@ -2,6 +2,7 @@
# Website Configurations
site_urls:
- psm.msolidariti.org
- partisosialis.org
admin_email: naresh@msolidariti.org
# LetsEncrypt Configuration
@ -18,4 +19,5 @@ letsencrypt_account_key: /etc/letsencrypt/account/account.key
# FirewallD
firewalld_public_services:
- https
- http