mirror of
https://github.com/kasmtech/ansible
synced 2025-01-06 00:38:46 +00:00
32 lines
1,022 B
YAML
32 lines
1,022 B
YAML
|
# Setup default creds if users don't set them in the vars/main.yml
|
||
|
|
||
|
- set_fact:
|
||
|
database_password: "{{ lookup('password', '/dev/null chars=ascii_letters,digits length=16') }}"
|
||
|
when: database_password is not defined
|
||
|
run_once: true
|
||
|
delegate_to: localhost
|
||
|
|
||
|
- set_fact:
|
||
|
redis_password: "{{ lookup('password', '/dev/null chars=ascii_letters,digits length=16') }}"
|
||
|
when: redis_password is not defined
|
||
|
run_once: true
|
||
|
delegate_to: localhost
|
||
|
|
||
|
- set_fact:
|
||
|
user_password: "{{ lookup('password', '/dev/null chars=ascii_letters,digits length=16') }}"
|
||
|
when: user_password is not defined
|
||
|
run_once: true
|
||
|
delegate_to: localhost
|
||
|
|
||
|
- set_fact:
|
||
|
admin_password: "{{ lookup('password', '/dev/null chars=ascii_letters,digits length=16') }}"
|
||
|
when: admin_password is not defined
|
||
|
run_once: true
|
||
|
delegate_to: localhost
|
||
|
|
||
|
- set_fact:
|
||
|
manager_token: "{{ lookup('password', '/dev/null chars=ascii_letters,digits length=16') }}"
|
||
|
when: manager_token is not defined
|
||
|
run_once: true
|
||
|
delegate_to: localhost
|
||
|
|