Download:
child 99:22422810e9a2
parent 97:fddc5e26348a
98:71b26e892a16
Anton Shestakov <av6@dwimlabs.net>, Tue, 05 Apr 2016 22:20:37 +0800
provision: make clear that encryption is required for this setup

1 файлов изменено, 12 вставок(+), 0 удалений(-) [+]
contrib/provision/roles/tram-im/tasks/main.yml file | annotate | diff | comparison | revisions
--- a/contrib/provision/roles/tram-im/tasks/main.yml Tue Apr 05 22:13:56 2016 +0800
+++ b/contrib/provision/roles/tram-im/tasks/main.yml Tue Apr 05 22:20:37 2016 +0800
@@ -9,6 +9,18 @@
- git # for 3rd-party libraries
tags: [packages]
+- stat: path='{{ ssl_cert }}'
+ register: certfile
+
+- stat: path='{{ ssl_key }}'
+ register: keyfile
+
+- name: Ensure certificate exists
+ assert:
+ that:
+ - '{{ certfile.stat.exists }}'
+ - '{{ keyfile.stat.exists }}'
+
- name: Create user
user: name={{ user }}