Browse Source

fix certbot role

- handle errors when starting/stopping webserver
- fix typo
python3
Edoardo Putti 7 years ago
parent
commit
f0cf5d9be9
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      roles/certbot/tasks/main.yaml

+ 3
- 1
roles/certbot/tasks/main.yaml View File

@ -14,6 +14,7 @@
service: service:
name: "{{ webserver_name }}" name: "{{ webserver_name }}"
state: stopped state: stopped
ignore_errors: yes
- name: request certificate - name: request certificate
command: > command: >
@ -33,6 +34,7 @@
service: service:
name: "{{ webserver_name }}" name: "{{ webserver_name }}"
state: started state: started
ignore_errors: yes
- name: Add systemd timer for cert renewal - name: Add systemd timer for cert renewal
template: template:
@ -49,4 +51,4 @@
name: certbot.timer name: certbot.timer
state: started state: started
enabled: true enabled: true
daemon_reaload: true
daemon_reload: true

Loading…
Cancel
Save