2024-01-16 12:06:31 +01:00
|
|
|
---
|
2024-01-16 19:06:54 +01:00
|
|
|
- name: Cassandra repositories
|
|
|
|
ansible.builtin.import_tasks: cassandra-repo.yml
|
|
|
|
- name: Cassandra packages
|
|
|
|
ansible.builtin.import_tasks: cassandra-packages.yml
|
|
|
|
- name: Cassandra configuration
|
|
|
|
ansible.builtin.import_tasks: cassandra-configuration.yml
|
|
|
|
|
|
|
|
- name: Ensure cassandra is started and enabled
|
|
|
|
ansible.builtin.service:
|
|
|
|
name: cassandra
|
|
|
|
state: started
|
|
|
|
enabled: true
|
|
|
|
when: cassandra_start_server
|
|
|
|
tags: [cassandra, cassandra_service]
|
|
|
|
|
|
|
|
- name: Ensure cassandra is stopped and disabled
|
|
|
|
ansible.builtin.service:
|
|
|
|
name: cassandra
|
|
|
|
state: stopped
|
|
|
|
enabled: false
|
|
|
|
when: not cassandra_start_server
|
|
|
|
tags: [cassandra, cassandra_service]
|