Browse Source

fix bug, added new site

master
Nareshkumar Rao 3 years ago
parent
commit
829d05cd3d
  1. 2
      roles/wordpress/tasks/letsencrypt.yml
  2. 2
      roles/wordpress/tasks/setup.yml
  3. 2
      vars.yml

2
roles/wordpress/tasks/letsencrypt.yml

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

2
roles/wordpress/tasks/setup.yml

@ -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
vars.yml

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

Loading…
Cancel
Save