ansible-role-cassandra/tasks/main.yml

24 lines
672 B
YAML

---
- 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]