hpc-cloud/roles/cassandra/tasks/main.yml
2017-10-02 17:04:44 +02:00

21 lines
462 B
YAML

# Install a docker based cassandra cluster.
---
- name: install service file.
template:
src: templates/cassandra.service
dest: /etc/systemd/system/cassandra.service
mode: 644
owner: root
group: root
- name: install service file
command: systemctl daemon-reload
- name: make sure service is started
systemd:
name: cassandra.service
state: started
- name: start service at boot.
command: systemctl reenable cassandra.service