mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Authenticate db creation with mysql root user
This commit is contained in:
parent
1f3c88623b
commit
7713b6da18
1 changed files with 4 additions and 0 deletions
|
@ -45,6 +45,8 @@
|
|||
password: "{{ asterisk_db_password }}"
|
||||
priv: "{{ asterisk_db_dbname }}.*:ALL/{{ asterisk_db_cdrdbname }}.*:ALL"
|
||||
login_host: "{{ asterisk_db_host }}"
|
||||
login_user: "root"
|
||||
login_password: "{{ mysql_root_password }}"
|
||||
host: "{{ (asterisk_db_host == 'localhost') | ternary('localhost', ansible_default_ipv4.address) }}"
|
||||
state: present
|
||||
|
||||
|
@ -54,6 +56,8 @@
|
|||
encoding: utf8
|
||||
collation: utf8_general_ci
|
||||
login_host: "{{ asterisk_db_host }}"
|
||||
login_user: "root"
|
||||
login_password: "{{ mysql_root_password }}"
|
||||
state: present
|
||||
|
||||
- name: FreePBX - Add cdr mysql db
|
||||
|
|
Loading…
Add table
Reference in a new issue