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

Loading…
Cancel
Save