zabbix: Update db creation task to continue when db exists
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
parent
197d53a9ba
commit
0920e7ae47
2 changed files with 22 additions and 0 deletions
21
roles/zabbix/zabbix_server/tasks/create_keytab.yml
Normal file
21
roles/zabbix/zabbix_server/tasks/create_keytab.yml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
- name: Create the zabbix keytab path
|
||||||
|
file:
|
||||||
|
path: "/etc/openshift_apps/zabbix/"
|
||||||
|
state: directory
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0750
|
||||||
|
tags:
|
||||||
|
- create-keytab
|
||||||
|
|
||||||
|
|
||||||
|
- name: Acquire a keytab
|
||||||
|
include_role:
|
||||||
|
name: keytab/service
|
||||||
|
vars:
|
||||||
|
kt_location:
|
||||||
|
"/etc/openshift_apps/zabbix/zabbix_server.kt"
|
||||||
|
service: "zabbix"
|
||||||
|
host: "{{ communishift_ocp_api_hostname }}"
|
||||||
|
tags:
|
||||||
|
- create-keytab
|
|
@ -29,6 +29,7 @@
|
||||||
|
|
||||||
- name: Configure the zabbix db
|
- name: Configure the zabbix db
|
||||||
ansible.builtin.shell: "sudo -u postgres createdb -O {{ zabbix_db_user }} {{ zabbix_db_name }}"
|
ansible.builtin.shell: "sudo -u postgres createdb -O {{ zabbix_db_user }} {{ zabbix_db_name }}"
|
||||||
|
ignore_errors: True
|
||||||
tags:
|
tags:
|
||||||
- db-configure
|
- db-configure
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue