--- - name: deploy all the needed tools for ceph hosts: all become: true gather_facts: true diff: true vars: ceph_repo: "http://nexus.test.repo.int.nt-com.ru/repository/ceph-squid/" image_registry: "harbor.test.registry.int.nt-com.ru/proxy-quay" prometheus_tag: "v3.0.0" node_exporter_tag: "v1.8.2" grafana_tag: "9.4.12" alertmanager_tag: "v0.27.0" ntp_server: "ntp.int.nt-com.ru" first_mon_ip: "10.50.8.88" # cluster_network: "10.63.0.0/24" public_network: "10.50.8.0/24" CEPH_RELEASE: '19.2.0' initial_dashboard_user: 'admin' initial_dashboard_password: 'qweqwe' allow_fqdn_hostname: 'true' tasks: - name: basic setups import_tasks: file: basics.yaml - name: running ceph bootstrap pause: prompt: RUN THIS TO BOOTSTRAP THE CLUSTER "cephadm --image harbor.test.registry.int.nt-com.ru/proxy-quay/ceph/ceph:v19.2 bootstrap --mon-ip {{ first_mon_ip }} --initial-dashboard-user {{ initial_dashboard_user }} --initial-dashboard-password {{ initial_dashboard_password }} --apply-spec /root/cluster_spec.yml --config /root/initial-ceph.conf --allow-fqdn-hostname" when: - cluster_network is undefined - name: running ceph bootstrap pause: prompt: RUN THIS TO BOOTSTRAP THE CLUSTER "cephadm --image harbor.test.registry.int.nt-com.ru/proxy-quay/ceph/ceph:v19.2 bootstrap --mon-ip {{ first_mon_ip }} --cluster-network {{ cluster_network }} --initial-dashboard-user {{ initial_dashboard_user }} --initial-dashboard-password {{ initial_dashboard_password }} --apply-spec /root/cluster_spec.yml --config /root/initial-ceph.conf --allow-fqdn-hostname" when: - cluster_network is defined handlers: - name: ceph-rollout:restart_chrony ansible.builtin.systemd_service: state: restarted name: chronyd # listen: "restart chronyd service" - name: ceph-rollout:restart_sshd ansible.builtin.systemd_service: state: restarted name: sshd # listen: "restart sshd service"