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

Generate secret key when deploying site #7

@codersquid

Description

@codersquid

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}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions