forked from ISTI-ansible-roles/ansible-roles
cassandra dev specific version
This commit is contained in:
parent
3d5a984427
commit
42df93abeb
|
@ -16,6 +16,37 @@
|
|||
ignore_errors: True
|
||||
tags: cassandra
|
||||
|
||||
- name: Install a specific version of cassandra server
|
||||
apt: pkg={{ item }}={{ cassandra_version }} state=present
|
||||
with_items:
|
||||
- cassandra
|
||||
when:
|
||||
- cassandra_install_from_external_repo
|
||||
- cassandra_install_packages
|
||||
- not cassandra_latest_version
|
||||
tags: cassandra
|
||||
|
||||
- name: Install a specific version of cassandra tools
|
||||
apt: pkg={{ item }}={{ cassandra_version }} state=present
|
||||
with_items:
|
||||
- cassandra-tools
|
||||
when:
|
||||
- cassandra_install_from_external_repo
|
||||
- cassandra_install_packages
|
||||
- not cassandra_latest_version
|
||||
tags: cassandra
|
||||
|
||||
- name: hold the version of cassandra server
|
||||
action: shell apt-mark hold {{ item }}
|
||||
with_items:
|
||||
- cassandra
|
||||
- cassandra-tools
|
||||
when:
|
||||
- cassandra_install_from_external_repo
|
||||
- cassandra_install_packages
|
||||
- not cassandra_latest_version
|
||||
tags: cassandra
|
||||
|
||||
- name: Install the latest version of cassandra server
|
||||
apt: pkg={{ item }} state=latest
|
||||
with_items:
|
||||
|
@ -27,7 +58,7 @@
|
|||
- cassandra_latest_version
|
||||
tags: cassandra
|
||||
|
||||
- name: Ensure mongodb is started
|
||||
- name: Ensure cassandra is started
|
||||
service: name=cassandra state=started enabled=yes
|
||||
when: ( cassandra_start_server is defined ) and ( cassandra_start_server == 'yes' )
|
||||
tags: cassandra
|
||||
|
|
Loading…
Reference in New Issue