Simplify integration_tests ansible playbook

Instead of using tasks to include the roles, use them directly.

The go role executes by default, unless the install_go variable
is set to false.
This commit is contained in:
ionutboangiu
2023-08-11 11:33:25 -04:00
committed by Dan Christian Bogos
parent 48b375ab99
commit 9fd262884f

View File

@@ -1,17 +1,9 @@
---
- hosts: all
tasks:
- name: Install RabbitMQ
import_role:
name: ../roles/install_rabbitmq
- name: Install NATS
import_role:
name: ../roles/nats
- name: Install ElasticSearch
import_role:
name: ../roles/elasticsearch
roles:
- ../roles/install_rabbitmq
- ../roles/nats
- role: ../roles/elasticsearch
vars:
auto_create_index: ".monitoring*,.watches,.triggered_watches,.watcher-history*,.ml*,cdrs"
@@ -21,22 +13,9 @@
# command: 'curl -X PUT "localhost:9200/cdrs?pretty"'
# ignore_errors: yes
- name: Install Kafka
import_role:
name: ../roles/kafka
- name: Install MongoDB
import_role:
name: ../roles/install_mongodb
- name: Install PostgreSQL
import_role:
name: ../roles/postgresql
- name: Install Go
import_role:
name: ../roles/go
- name: Install and configure CGRateS
import_role:
name: ../roles/cgrates
- ../roles/kafka
- ../roles/install_mongodb
- ../roles/postgresql
- role: ../roles/go
when: install_go | bool | default(true)
- ../roles/cgrates