2017-02-02 00:18:17 +08:00
|
|
|
---
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Generate systemd ceph-mon target file
|
|
|
|
ansible.builtin.copy:
|
2021-08-10 21:21:19 +08:00
|
|
|
src: ceph.target
|
|
|
|
dest: /etc/systemd/system/ceph.target
|
2024-02-14 18:14:02 +08:00
|
|
|
mode: "0644"
|
2021-08-10 21:21:19 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Enable ceph.target
|
|
|
|
ansible.builtin.service:
|
2021-08-10 21:21:19 +08:00
|
|
|
name: ceph.target
|
2024-02-14 18:14:02 +08:00
|
|
|
enabled: true
|
|
|
|
daemon_reload: true
|
2021-08-10 21:21:19 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Include prerequisites.yml
|
|
|
|
ansible.builtin.include_tasks: prerequisites.yml
|
2017-02-24 17:22:16 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Include registry.yml
|
|
|
|
ansible.builtin.include_tasks: registry.yml
|
2019-09-11 03:33:44 +08:00
|
|
|
when: ceph_docker_registry_auth | bool
|
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Include fetch_image.yml
|
|
|
|
ansible.builtin.include_tasks: fetch_image.yml
|
2019-04-01 23:46:15 +08:00
|
|
|
tags: fetch_container_image
|
2017-08-29 05:23:36 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Get ceph version
|
|
|
|
ansible.builtin.command: >
|
2019-02-01 05:17:20 +08:00
|
|
|
{{ container_binary }} run --rm --net=host --entrypoint /usr/bin/ceph
|
2018-11-01 19:48:59 +08:00
|
|
|
{{ ceph_client_docker_registry }}/{{ ceph_client_docker_image }}:{{ ceph_client_docker_image_tag }}
|
|
|
|
--version
|
2017-08-29 05:23:36 +08:00
|
|
|
changed_when: false
|
2024-02-14 18:14:02 +08:00
|
|
|
check_mode: false
|
2017-08-29 05:23:36 +08:00
|
|
|
register: ceph_version
|
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Set_fact ceph_version ceph_version.stdout.split
|
|
|
|
ansible.builtin.set_fact:
|
2017-08-29 05:23:36 +08:00
|
|
|
ceph_version: "{{ ceph_version.stdout.split(' ')[2] }}"
|
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Include release.yml
|
|
|
|
ansible.builtin.include_tasks: release.yml
|