mirror of https://github.com/ceph/ceph-ansible.git
set docker_exec_cmd fact early in each role
This is to ensure `docker_exec_cmd` fact is set with the correct value in case of daemons collocation Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>pull/1953/head
parent
5968cf09b1
commit
784cc73da0
|
@ -1,4 +1,10 @@
|
|||
---
|
||||
- name: set_fact docker_exec_cmd
|
||||
set_fact:
|
||||
docker_exec_cmd: "docker exec ceph-iscsi-gw-{{ ansible_hostname }}"
|
||||
when:
|
||||
- containerized_deployment
|
||||
|
||||
- name: check_mandatory_vars.yml
|
||||
include: check_mandatory_vars.yml
|
||||
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
---
|
||||
- name: set_fact docker_exec_cmd
|
||||
set_fact:
|
||||
docker_exec_cmd: "docker exec ceph-mds-{{ ansible_hostname }}"
|
||||
when:
|
||||
- containerized_deployment
|
||||
|
||||
- name: non_containerized.yml
|
||||
include: non_containerized.yml
|
||||
when: not containerized_deployment
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
---
|
||||
- name: set_fact docker_exec_cmd
|
||||
set_fact:
|
||||
docker_exec_cmd: "docker exec ceph-mgr-{{ ansible_hostname }}"
|
||||
when:
|
||||
- containerized_deployment
|
||||
|
||||
- name: include pre_requisite.yml
|
||||
include: pre_requisite.yml
|
||||
when: not containerized_deployment
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
---
|
||||
- name: set_fact docker_exec_cmd
|
||||
set_fact:
|
||||
docker_exec_cmd: "docker exec ceph-mon-{{ ansible_hostname }}"
|
||||
when:
|
||||
- containerized_deployment
|
||||
|
||||
- name: include check_mandatory_vars.yml
|
||||
include: check_mandatory_vars.yml
|
||||
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
---
|
||||
- name: set_fact docker_exec_cmd
|
||||
set_fact:
|
||||
docker_exec_cmd: "docker exec ceph-nfs-{{ ansible_hostname }}"
|
||||
when:
|
||||
- containerized_deployment
|
||||
|
||||
- name: include pre_requisite_non_container.yml
|
||||
include: pre_requisite_non_container.yml
|
||||
when:
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
---
|
||||
- name: set_fact docker_exec_cmd
|
||||
set_fact:
|
||||
docker_exec_cmd: "docker exec ceph-osd-{{ ansible_hostname }}"
|
||||
when:
|
||||
- containerized_deployment
|
||||
|
||||
- name: include check_mandatory_vars.yml
|
||||
include: check_mandatory_vars.yml
|
||||
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
---
|
||||
- name: set_fact docker_exec_cmd
|
||||
set_fact:
|
||||
docker_exec_cmd: "docker exec ceph-rbd-mirror-{{ ansible_hostname }}"
|
||||
when:
|
||||
- containerized_deployment
|
||||
|
||||
- name: include pre_requisite.yml
|
||||
include: pre_requisite.yml
|
||||
when:
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
---
|
||||
- name: set_fact docker_exec_cmd
|
||||
set_fact:
|
||||
docker_exec_cmd: "docker exec ceph-restapi-{{ ansible_hostname }}"
|
||||
when:
|
||||
- containerized_deployment
|
||||
|
||||
- name: include pre_requisite.yml
|
||||
include: pre_requisite.yml
|
||||
when:
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
---
|
||||
- name: set_fact docker_exec_cmd
|
||||
set_fact:
|
||||
docker_exec_cmd: "docker exec ceph-rgw-{{ ansible_hostname }}"
|
||||
when:
|
||||
- containerized_deployment
|
||||
|
||||
- name: include pre_requisite.yml
|
||||
include: pre_requisite.yml
|
||||
when:
|
||||
|
|
Loading…
Reference in New Issue