summaryrefslogtreecommitdiff
path: root/files/ssl.yaml
diff options
context:
space:
mode:
authorckonstanski <ckonstanski@pippiandcarlos.com>2018-01-16 21:51:02 +0000
committerckonstanski <ckonstanski@pippiandcarlos.com>2018-01-16 21:51:02 +0000
commita263210661010e35542659e8ecd9fc8c2b779997 (patch)
tree0efa650972d6d5d2559bc1e5c329d936800ca0ac /files/ssl.yaml
parent202f5fad0c6ca43120163f7cf30e23f72ab1a2c2 (diff)
autocommit Tue Jan 16 21:51:02 UTC 2018
Diffstat (limited to 'files/ssl.yaml')
-rw-r--r--files/ssl.yaml24
1 files changed, 0 insertions, 24 deletions
diff --git a/files/ssl.yaml b/files/ssl.yaml
deleted file mode 100644
index fad5563..0000000
--- a/files/ssl.yaml
+++ /dev/null
@@ -1,24 +0,0 @@
----
-- name: "Create self-signed SSL cert"
- shell:
- cmd: |
- if [ ! -f "/etc/ssl/certs/{{ item }}.crt" ] && [ ! -f "/etc/ssl/private/{{ item }}.key" ]; then
- openssl req -x509 -nodes -sha256 -days 3650 -newkey rsa:4096 -keyout "/tmp/{{ item }}.key" -out "/tmp/{{ item }}.crt" <<EOF
- US
- New Jersey
- Basking Ridge
- Verizon Wireless
- Verizon Cloud Platform
- {{ item }}
- carlos.konstanski@verizonwireless.com
- EOF
- cp -f "/tmp/{{ item }}.crt" "/etc/ssl/certs/"
- cp -f "/tmp/{{ item }}.key" "/etc/ssl/private/"
- chmod 644 "/etc/ssl/certs/{{ item }}.crt"
- chown root: "/etc/ssl/certs/{{ item }}.crt"
- chmod 640 "/etc/ssl/private/{{ item }}.key"
- chown root:ssl-cert "/etc/ssl/private/{{ item }}.key"
- fi
- executable: /bin/bash
- with_items:
- - "{{ inventory_hostname }}"