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" - name: "Implement http-01 challenge files"
copy: copy:
content: "{{ acme_challenge_domain['challenge_data'][item]['http-01']['resource_value'] }}" 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 owner: root
group: root group: root
mode: u=rw,g=r,o=r mode: u=rw,g=r,o=r

2
roles/wordpress/tasks/setup.yml

@ -5,7 +5,7 @@
- name: Get LetsEncrypt Certificates - name: Get LetsEncrypt Certificates
import_tasks: letsencrypt.yml 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 - name: Copy Apache config
template: template:

2
vars.yml

@ -2,6 +2,7 @@
# Website Configurations # Website Configurations
site_urls: site_urls:
- psm.msolidariti.org - psm.msolidariti.org
- partisosialis.org
admin_email: naresh@msolidariti.org admin_email: naresh@msolidariti.org
# LetsEncrypt Configuration # LetsEncrypt Configuration
@ -18,4 +19,5 @@ letsencrypt_account_key: /etc/letsencrypt/account/account.key
# FirewallD # FirewallD
firewalld_public_services: firewalld_public_services:
- https - https
- http

Loading…
Cancel
Save