Fix lego
This commit is contained in:
parent
6abe601862
commit
a2657b7133
1 changed files with 15 additions and 1 deletions
|
@ -100,12 +100,26 @@
|
||||||
mode: 0700
|
mode: 0700
|
||||||
loop: "{{ lego_certs }}"
|
loop: "{{ lego_certs }}"
|
||||||
|
|
||||||
|
- name: set cron env to bash
|
||||||
|
cron:
|
||||||
|
name: SHELL
|
||||||
|
env: True
|
||||||
|
job: /bin/bash
|
||||||
|
user: lego
|
||||||
|
|
||||||
|
- name: set cron env to bash
|
||||||
|
cron:
|
||||||
|
name: SHELL
|
||||||
|
env: True
|
||||||
|
job: /bin/bash
|
||||||
|
user: root
|
||||||
|
|
||||||
- name: create renewal crontabs
|
- name: create renewal crontabs
|
||||||
cron:
|
cron:
|
||||||
name: "{{ item.name }} renewal"
|
name: "{{ item.name }} renewal"
|
||||||
hour: "4"
|
hour: "4"
|
||||||
user: lego
|
user: lego
|
||||||
job: 'source /etc/default/lego && /usr/local/bin/lego --pem --path {{ lego_path }} --email {{ lego_email_address }} --dns {{ item.dns }} --domains "{{ item.domain }}" renew --days 45'
|
job: 'source /etc/default/lego && /usr/local/bin/lego --pem --path {{ lego_path }} --email {{ lego_email_address }} --dns {{ item.dns }} --domains "{{ item.domain }}" renew --days 30'
|
||||||
loop: "{{ lego_certs }}"
|
loop: "{{ lego_certs }}"
|
||||||
|
|
||||||
- name: create haproxy reload crontab
|
- name: create haproxy reload crontab
|
||||||
|
|
Loading…
Reference in a new issue