mirror of https://github.com/Aidaho12/haproxy-wi
Merge branch 'master' of https://github.com/aidaho12/haproxy-wi
commit
3018e55360
|
@ -1,4 +1,4 @@
|
||||||
# 
|
# 
|
||||||
Web interface(user-friendly web GUI, alerting, monitoring and secure) for managing HAProxy, Nginx and Keepalived servers. Leave your [feedback](https://github.com/Aidaho12/haproxy-wi/issues)
|
Web interface(user-friendly web GUI, alerting, monitoring and secure) for managing HAProxy, Nginx and Keepalived servers. Leave your [feedback](https://github.com/Aidaho12/haproxy-wi/issues)
|
||||||
|
|
||||||
# Get involved
|
# Get involved
|
||||||
|
|
|
@ -29,20 +29,23 @@
|
||||||
failed_when: false
|
failed_when: false
|
||||||
no_log: True
|
no_log: True
|
||||||
|
|
||||||
# - name: Get cert
|
- name: Get cert
|
||||||
# command: certbot certonly --standalone -d "{{DOMAIN}}" --non-interactive --agree-tos --email "{{EMAIL}}" --http-01-port=8888
|
command: certbot certonly --standalone -d "{{DOMAIN}}" --non-interactive --agree-tos --email "{{EMAIL}}" --http-01-port=8888
|
||||||
|
|
||||||
- name: Combine into pem file
|
- name: Combine into pem file
|
||||||
shell: cat /etc/letsencrypt/live/"{{DOMAIN}}"/fullchain.pem /etc/letsencrypt/live/"{{DOMAIN}}"/privkey.pem > "{{SSL_PATH}}"/"{{DOMAIN}}".pem
|
shell: cat /etc/letsencrypt/live/{{DOMAIN}}/fullchain.pem /etc/letsencrypt/live/{{DOMAIN}}/privkey.pem > "{{SSL_PATH}}"/"{{DOMAIN}}".pem
|
||||||
|
|
||||||
- name: Copy renew script
|
- name: Copy renew script
|
||||||
template:
|
template:
|
||||||
src: /var/www/haproxy-wi/app/scripts/ansible/roles/renew_letsencrypt.j2
|
src: /var/www/haproxy-wi/app/scripts/ansible/roles/renew_letsencrypt.j2
|
||||||
dest: /etc/haproxy/renew_letsencrypt.sh
|
dest: /etc/haproxy/renew_letsencrypt.sh
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
ignore_errors: yes
|
||||||
|
failed_when: false
|
||||||
|
no_log: True
|
||||||
|
|
||||||
- name: Creates cron jobs
|
- name: Creates cron jobs
|
||||||
cron:
|
cron:
|
||||||
name: "Let's encrypt renew script"
|
name: "Let's encrypt renew script"
|
||||||
special_time: "monthly"
|
special_time: "monthly"
|
||||||
job: '/etc/haproxy/renew_letsencrypt.sh'
|
job: '/etc/haproxy/renew_letsencrypt.sh'
|
||||||
|
|
Loading…
Reference in New Issue