diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2016-06-15 18:08:48 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2016-06-15 18:13:09 +0200 |
commit | 02d4a5892bb3019d448c453ad279788fcd3f1531 (patch) | |
tree | f8e023267ac8af5cab8aa5413c52c37c6d9257af /roles/lists/tasks | |
parent | 97e78349145156ca6565ee5b2af54983a6fdd3a6 (diff) |
certs/public: fetch each cert's pubkey (SPKI), not the cert itself.
To avoid new commits upon cert renewal.
Diffstat (limited to 'roles/lists/tasks')
-rw-r--r-- | roles/lists/tasks/nginx.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/lists/tasks/nginx.yml b/roles/lists/tasks/nginx.yml index caa1abf..fa52781 100644 --- a/roles/lists/tasks/nginx.yml +++ b/roles/lists/tasks/nginx.yml @@ -11,25 +11,25 @@ - Restart Nginx - name: Create /etc/nginx/sites-enabled/sympa file: src=../sites-available/sympa dest=/etc/nginx/sites-enabled/sympa owner=root group=root state=link register: r2 notify: - Restart Nginx - name: Start nginx service: name=nginx state=started when: not (r1.changed or r2.changed) - meta: flush_handlers - name: Fetch Nginx's X.509 certificate # Ensure we don't fetch private data become: False - fetch_cmd: cmd="openssl x509" + fetch_cmd: cmd="openssl x509 -noout -pubkey" stdin=/etc/nginx/ssl/lists.fripost.org.pem dest=certs/public/lists.fripost.org.pem tags: - genkey |