zabbix: formatting issue in zabbix web config template
rework db task for creating zabbix user Signed-off-by: David Kirwan <dkirwan@redhat.com>
This commit is contained in:
parent
a8cc7b4c9b
commit
2ce8906f5f
2 changed files with 13 additions and 17 deletions
|
@ -16,17 +16,13 @@
|
|||
tags:
|
||||
- zabbix-services
|
||||
|
||||
- name: Configure the zabbix db user
|
||||
ansible.builtin.shell: |
|
||||
sudo -u postgres createuser --pwprompt {{ zabbix_db_user }}
|
||||
|
||||
expect "Enter password for new role: "
|
||||
send "{{ zabbix_db_pass }}\n"
|
||||
expect "Enter it again: "
|
||||
send "{{ zabbix_db_pass }}\n"
|
||||
|
||||
exit 0
|
||||
# no_log: True
|
||||
- name: Connect to acme database, create django user, and grant access to database and products table
|
||||
postgresql_user:
|
||||
name: "{{ zabbix_db_user }}"
|
||||
password: "{{ zabbix_db_pass }}"
|
||||
become: true
|
||||
become_user: postgres
|
||||
tags:
|
||||
- db-configure
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php [35/1910]
|
||||
<?php
|
||||
// Zabbix GUI configuration file.
|
||||
|
||||
$DB['TYPE'] = '{{ zabbix_db_type }}';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue