add ocsp
This commit is contained in:
@@ -44,9 +44,12 @@
|
||||
|
||||
- name: copy scripts
|
||||
copy:
|
||||
src: update_haproxy_certs.sh
|
||||
src: "{{ item }}"
|
||||
dest: /usr/local/bin
|
||||
mode: 0755
|
||||
with_items:
|
||||
- update_haproxy_certs.sh
|
||||
- ocsp_update.sh
|
||||
|
||||
- name: create basic HAProxy configs
|
||||
template:
|
||||
@@ -83,4 +86,18 @@
|
||||
name: haproxy
|
||||
enabled: yes
|
||||
state: started
|
||||
|
||||
|
||||
- name: renew certificates every sunday
|
||||
cron:
|
||||
name: renew certificates
|
||||
weekday: SUN
|
||||
minute: "{{59|random(seed=inventory_hostname+'renew certificates')}}"
|
||||
hour: "{{23|random(seed=inventory_hostname+'renew certificates')}}"
|
||||
job: /usr/local/bin/update_haproxy_certs.sh
|
||||
|
||||
- name: renew ocsp information
|
||||
cron:
|
||||
name: renew ocsp
|
||||
minute: "{{59|random(seed=inventory_hostname+'renew ocsp')}}"
|
||||
hour: "{{23|random(seed=inventory_hostname+'renew ocsp')}}"
|
||||
job: /usr/local/bin/ocsp_update.sh
|
||||
|
Reference in New Issue
Block a user