Skip to content

Commit

Permalink
create ssl cert
Browse files Browse the repository at this point in the history
  • Loading branch information
emillon committed Jan 14, 2015
1 parent 1e90981 commit 3cd8a2b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions devops/roles/appserver/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@
notify:
- restart nginx

- name: create self-signed SSL cert
action: command openssl req -new -nodes -x509 -subj "/C=FR/S=Ile-de-France/L=Paris/OU=IT/O=Cloverfeed/CN=${ansible_fqdn}" -days 730 -keyout /etc/nginx/ssl/{{app_name}}.key -out /etc/nginx/ssl/{{app_name}}.crt -extensions v3_ca
args:
creates: /etc/nginx/ssl/{{app_name}}.crt
notify: reload nginx

- name: link nginx config
action: file
args:
Expand Down

0 comments on commit 3cd8a2b

Please sign in to comment.