2017-06-13 12:08:41 +02:00
|
|
|
# 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
|
2017-09-29 16:40:38 +02:00
|
|
|
|
2017-06-13 12:08:41 +02:00
|
|
|
- name: install service file
|
|
|
|
command: systemctl daemon-reload
|
2017-09-29 16:40:38 +02:00
|
|
|
|
2017-06-13 12:08:41 +02:00
|
|
|
- name: make sure service is started
|
|
|
|
systemd:
|
|
|
|
name: cassandra.service
|
|
|
|
state: started
|
2017-09-29 16:40:38 +02:00
|
|
|
|
|
|
|
- name: start service at boot.
|
|
|
|
command: systemctl reenable cassandra.service
|