Browse Source

Update letsencrypt automation to accept terms of services

Emmanuel Bouthenot 7 years ago
parent
commit
bb8432e86b
1 changed files with 5 additions and 0 deletions
  1. 5 0
      roles/common/tasks/ssl.yml

+ 5 - 0
roles/common/tasks/ssl.yml

@@ -105,3 +105,8 @@
     group: 'root'
     mode: '0644'
   when: ssl_certs_auto
+
+- name: 'Register and accept Lets Encrypt terms of service'
+  shell: if dehydrated --help | grep -q -- 'register' && dehydrated --help | grep -q -- 'accept-terms' ; then echo dehydrated --register --accept-terms ; fi
+  changed_when: False
+  when: ssl_certs_auto