Commit 50dda676 authored by Marco Marinello's avatar Marco Marinello

Add a script just for ansible

Signed-off-by: Marco Marinello's avatarMarco Marinello <me@marcomarinello.it>
parent 0e375d9b
#!/bin/bash
echo -n GEN PWS ...
echo -n > .env
for i in $(cat example.env); do
if echo $i | grep PASSWORD > /dev/null; then
echo $i | cut -d '=' -f 1 | tr -d '\n' >> .env
echo -n = >> .env
pwgen 30 1 >> .env
fi
done
echo OK
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment