Skip to content
This repository has been archived by the owner on Nov 11, 2019. It is now read-only.

Generate secret key when deploying site #7

Open
codersquid opened this issue Mar 7, 2015 · 0 comments
Open

Generate secret key when deploying site #7

codersquid opened this issue Mar 7, 2015 · 0 comments

Comments

@codersquid
Copy link
Contributor

I do not know how to generate a password for SECRET_KEY. I found a snippet I am playing around with. It's not ready to be checked in. for now the SECRET_KEY is set by hand in the roles/richard/defaults/main.yml file.


---
- hosts: localhost
  tasks:
    - local_action: shell openssl passwd -1 -in /dev/urandom | head -1
      register: secret_key
    - local_action: debug msg="secret_key is ${secret_key.stdout}"
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant