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 }}"
|
password: "{{ asterisk_db_password }}"
|
||||||
priv: "{{ asterisk_db_dbname }}.*:ALL/{{ asterisk_db_cdrdbname }}.*:ALL"
|
priv: "{{ asterisk_db_dbname }}.*:ALL/{{ asterisk_db_cdrdbname }}.*:ALL"
|
||||||
login_host: "{{ asterisk_db_host }}"
|
login_host: "{{ asterisk_db_host }}"
|
||||||
|
login_user: "root"
|
||||||
|
login_password: "{{ mysql_root_password }}"
|
||||||
host: "{{ (asterisk_db_host == 'localhost') | ternary('localhost', ansible_default_ipv4.address) }}"
|
host: "{{ (asterisk_db_host == 'localhost') | ternary('localhost', ansible_default_ipv4.address) }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
@ -54,6 +56,8 @@
|
||||||
encoding: utf8
|
encoding: utf8
|
||||||
collation: utf8_general_ci
|
collation: utf8_general_ci
|
||||||
login_host: "{{ asterisk_db_host }}"
|
login_host: "{{ asterisk_db_host }}"
|
||||||
|
login_user: "root"
|
||||||
|
login_password: "{{ mysql_root_password }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: FreePBX - Add cdr mysql db
|
- name: FreePBX - Add cdr mysql db
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue