ceph-mon: port start_monitor task to use new ceph version facts

Signed-off-by: Alfredo Deza <adeza@redhat.com>
pull/737/head
Alfredo Deza 2016-04-27 10:41:39 -04:00
parent 3c82c7fd16
commit 50377e19b4
1 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@
changed_when: false
when:
ansible_distribution != "Ubuntu" and
not is_ceph_infernalis
is_before_infernalis
- name: enable systemd unit file for mon instance (for or after infernalis)
file:
@ -36,7 +36,7 @@
failed_when: false
when:
ansible_distribution != "Ubuntu" and
is_ceph_infernalis
is_after_hammer
- name: start and add that the monitor service to the init sequence (for or after infernalis)
service:
@ -46,7 +46,7 @@
changed_when: false
when:
ansible_distribution != "Ubuntu" and
is_ceph_infernalis
is_after_hammer
- name: collect admin and bootstrap keys
command: ceph-create-keys --cluster {{ cluster }} --id {{ monitor_name }}