with_items:
- done
- upstart
- when: ansible_distribution == "Ubuntu"
+ when: not use_systemd
- name: start and add that the monitor service to the init sequence (ubuntu)
command: initctl emit ceph-mon cluster={{ cluster }} id={{ monitor_name }}
changed_when: false
failed_when: false
- when: ansible_distribution == "Ubuntu"
+ when: not use_systemd
# NOTE (leseb): somehow the service ansible module is messing things up
# as a safety measure we run the raw command
changed_when: false
failed_when: false
when:
- ansible_distribution != "Ubuntu" and
+ use_systemd and
is_after_hammer
- name: start and add that the monitor service to the init sequence (for or after infernalis)
enabled: yes
changed_when: false
when:
- ansible_distribution != "Ubuntu" and
+ use_systemd and
is_after_hammer
- name: collect admin and bootstrap keys