Browse Source

playbook.yml edited online with Bitbucket

Daniel Libonati 7 years ago
parent
commit
bf1fb5f368
1 changed files with 9 additions and 5 deletions
  1. 9 5
      tools/playbook.yml

+ 9 - 5
tools/playbook.yml

@@ -269,11 +269,15 @@
       shell: "bin/console doctrine:schema:update --force"
 
   # Generate self-signed cert files for Nginx
-- name: "Make sure certs dir exists"
-  command: "mkdir -p /opt/flowdat/extra/nginx/certs"
-
-- name: "Generate self-signed certs for Nginx"
-  command: "openssl req -x509 -nodes -batch -days 365 -newkey rsa:2048 -keyout /opt/flowdat/extra/nginx/certs/privkey.pem -out /opt/flowdat/extra/nginx/certs/fullchain.pem"
+- name: "Generate self-signed cert files for Nginx"
+  hosts: 127.0.0.1
+  connection: local
+  tags: self_cert
+  tasks:
+    - name: "Make sure certs dir exists"
+      shell: "mkdir -p /opt/flowdat/extra/nginx/certs"
+    - name: "Generate self-signed certs for Nginx"
+      shell: "openssl req -x509 -nodes -batch -days 365 -newkey rsa:2048 -keyout /opt/flowdat/extra/nginx/certs/privkey.pem -out /opt/flowdat/extra/nginx/certs/fullchain.pem"
 
 - name: "Run up all. Tag=up_all"
   hosts: 127.0.0.1