Download:
child 6:7cc6e8563947
parent 4:67349ffb6dc5
5:5c3d359316e0
Anton Shestakov <av6@dwimlabs.net>, Sat, 25 Jun 2016 12:27:03 +0800
tasks: split shell oneliner (HPKP)

1 файлов изменено, 4 вставок(+), 1 удалений(-) [+]
roles/nginx/tasks/main.yml file | annotate | diff | comparison | revisions
--- a/roles/nginx/tasks/main.yml Sun Mar 13 06:23:08 2016 +0000
+++ b/roles/nginx/tasks/main.yml Sat Jun 25 12:27:03 2016 +0800
@@ -36,7 +36,10 @@
- restart nginx
- name: Extract information for HPKP header
- shell: openssl rsa -in /etc/nginx/easy-rsa/keys/{{ item }} -outform der -pubout | openssl dgst -sha256 -binary | openssl enc -base64
+ shell: >
+ openssl rsa -in /etc/nginx/easy-rsa/keys/{{ item }} -outform der -pubout
+ | openssl dgst -sha256 -binary
+ | openssl enc -base64
with_items:
- munin.{{ hostname }}.key
- ca.key