[SUCS Devel] [Git][sucs/sucs][master] 2 commits: fix letsencrypt role

Imran Hussain imranh at sucs.org
Mon Sep 5 13:18:05 BST 2016


Imran Hussain pushed to branch master at sucs / SUCS


Commits:
c8342161 by Imran Hussain at 2016-09-05T13:18:27+01:00
fix letsencrypt role

- - - - -
c218a7dd by Imran Hussain at 2016-09-05T13:19:25+01:00
Nobody spotted my typo?

- - - - -


2 changed files:

- ansible/letsencrypt-things.yml
- ansible/roles/letsencrypt/tasks/main.yml


Changes:

=====================================
ansible/letsencrypt-things.yml
=====================================
--- a/ansible/letsencrypt-things.yml
+++ b/ansible/letsencrypt-things.yml
@@ -1,24 +1,24 @@
 - hosts: silver
   roles:
-    - role: letsencypt
+    - role: letsencrypt
       le_email: admin at sucs.org
       le_webroot_path: /var/www/sucssite/htdocs 
       le_cert_domains:
        - sucs.org
        - www.sucs.org
-    - role: letsencypt
+    - role: letsencrypt
       le_email: admin at sucs.org
       le_webroot_path: /var/www/beta/htdocs
       le_cert_domains: beta.sucs.org
-    - role: letsencypt
+    - role: letsencrypt
       le_email: admin at sucs.org
       le_webroot_path: /var/www/lists
       le_cert_domains: lists.sucs.org
-    - role: letsencypt
+    - role: letsencrypt
       le_email: admin at sucs.org
       le_webroot_path: /var/www/vhost
       le_cert_domains: vhost.sucs.org
-    - role: letsencypt
+    - role: letsencrypt
       le_email: admin at sucs.org
       le_webroot_path: /var/www/twenty
       le_cert_domains:


=====================================
ansible/roles/letsencrypt/tasks/main.yml
=====================================
--- a/ansible/roles/letsencrypt/tasks/main.yml
+++ b/ansible/roles/letsencrypt/tasks/main.yml
@@ -1,10 +1,10 @@
 - include: debian.yml
   when: ansible_os_family == "Debian"
-
+  
 - name: do we already have a cert?
-  stat: path=/etc/letsencrypt/live/{{ le_cert_domains[0] }}
+  stat: path=/etc/letsencrypt/live/{{ le_cert_domains[0] }}/fullchain.pem
   register: le_firstrun
-
+      
 - name: No cert found! Attempt to get the certificate
   command: "certbot --non-interactive --agree-tos --email {{ le_email }} certonly --webroot -w {{ le_webroot_path }} -d {{ le_cert_domains }}"
-  when: not le_firstrun.stat.exists
\ No newline at end of file
+  when: le_firstrun.stat.exists == False
\ No newline at end of file



View it on GitLab: https://projects.sucs.org/sucs/sucs/compare/83def71de17edfd4503e2ca16e5190a9ca9295ed...c218a7dd5e5aee59c64c7e9cd26a982ccd13c4df
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20160905/dc0fdbde/attachment-0001.html>


More information about the Devel mailing list