Browse Source

ubnind port 80 during certificate request

python3
Edoardo Putti 7 years ago
parent
commit
73cbf6a1a8
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      roles/certbot/tasks/main.yaml

+ 10
- 0
roles/certbot/tasks/main.yaml View File

@ -10,6 +10,11 @@
- sendmail-bin
- cron
- name: Shutdown webservers
service:
name: "{{ webserver_name }}"
state: stopped
- name: request certificate
command: certbot certonly -a standalone --agree-tos --email roots@lists.lilik.it --preferred-challenges http -d {{ server_fqdn }} -d www.{{ server_fqdn }} -n
args:
@ -21,3 +26,8 @@
# minute: "30"
# hour: "2"
# job: '/usr/bin/certbot renew -n --renew-hook "/bin/systemctl reload {{ webserver_name }}"'
- name: Restart webservers
service:
name: "{{ webserver_name }}"
state: started

Loading…
Cancel
Save