Skip to content

Commit

Permalink
Prefix database task-files with initialize
Browse files Browse the repository at this point in the history
It reflects more accurately what we're trying to achieve. Also
strip out zabbix_proxy_db_long, it serves no purpose anymore.
  • Loading branch information
eb4x committed May 6, 2024
1 parent a12db7f commit f159c83
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 2 additions & 3 deletions roles/zabbix_proxy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

- name: Set More Variables
ansible.builtin.set_fact:
zabbix_proxy_db_long: "{{ 'postgresql' if zabbix_proxy_database == 'pgsql' else zabbix_proxy_database }}"
zabbix_short_version: "{{ zabbix_proxy_version | regex_replace('\\.', '') }}"
zabbix_proxy_fpinglocation: "{{ zabbix_proxy_fpinglocation if zabbix_proxy_fpinglocation is defined else _zabbix_proxy_fpinglocation}}"
zabbix_proxy_fping6location: "{{ zabbix_proxy_fping6location if zabbix_proxy_fping6location is defined else _zabbix_proxy_fping6location}}"
Expand Down Expand Up @@ -79,8 +78,8 @@
tags:
- database

- name: "Installing the database"
ansible.builtin.include_tasks: "{{ zabbix_proxy_db_long }}.yml"
- name: "Initialize the database"
ansible.builtin.include_tasks: "initialize-{{ zabbix_proxy_database }}.yml"

- name: "Create include dir zabbix-proxy"
ansible.builtin.file:
Expand Down

0 comments on commit f159c83

Please sign in to comment.