- introduces a variable certbot_from_git - adds install from package tasks - makes a variable called certbot_script available (to handle certbot vs certbot-auto naming) - fixes #18pull/20/head
parent
35ceee9f1b
commit
f3a260e94e
@ -0,0 +1,7 @@ |
||||
--- |
||||
- name: Install Certbot |
||||
package: name=certbot state=present |
||||
|
||||
- name: Set Certbot script variable |
||||
set_fact: |
||||
certbot_script: certbot |
@ -1,5 +1,9 @@ |
||||
--- |
||||
- include: install-from-package.yml |
||||
when: not certbot_from_git |
||||
|
||||
- include: install-from-git.yml |
||||
when: certbot_from_git |
||||
|
||||
- include: renew-cron.yml |
||||
when: certbot_auto_renew |
||||
|
@ -1,8 +1,8 @@ |
||||
--- |
||||
- name: Add cron job for 'certbot-auto renew' (if configured). |
||||
- name: Add cron job for certbot renewal (if configured). |
||||
cron: |
||||
name: Certbot automatic renewal. |
||||
job: "{{ certbot_dir }}/certbot-auto renew --quiet --no-self-upgrade" |
||||
job: "{{ certbot_script }} renew --quiet --no-self-upgrade" |
||||
minute: "{{ certbot_auto_renew_minute }}" |
||||
hour: "{{ certbot_auto_renew_hour }}" |
||||
user: "{{ certbot_auto_renew_user }}" |
||||
|
Loading…
Reference in new issue