cassandra.yml 353 B

123456789101112
  1. ---
  2. - name: create dir /opt/tools
  3. file:
  4. path: /opt/tools
  5. state: directory
  6. mode: 0755
  7. - name: copy cassandra_daemon.sh to /opt/tools/
  8. copy: src=cassandra_daemon.sh dest=/opt/tools/cassandra_daemon.sh owner=root group=root mode=0755
  9. - name: run deamon with background
  10. shell: nohup bash /opt/tools/cassandra_daemon.sh >/dev/null 2>&1 &