diff --git a/roles/ceph-iscsi-gw/tasks/main.yml b/roles/ceph-iscsi-gw/tasks/main.yml index 3cde512fb..d2bf4ab07 100644 --- a/roles/ceph-iscsi-gw/tasks/main.yml +++ b/roles/ceph-iscsi-gw/tasks/main.yml @@ -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 diff --git a/roles/ceph-mds/tasks/main.yml b/roles/ceph-mds/tasks/main.yml index 7ba25cce1..88c6174e7 100644 --- a/roles/ceph-mds/tasks/main.yml +++ b/roles/ceph-mds/tasks/main.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 diff --git a/roles/ceph-mgr/tasks/main.yml b/roles/ceph-mgr/tasks/main.yml index f2b42763c..e3a0bb244 100644 --- a/roles/ceph-mgr/tasks/main.yml +++ b/roles/ceph-mgr/tasks/main.yml @@ -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 diff --git a/roles/ceph-mon/tasks/main.yml b/roles/ceph-mon/tasks/main.yml index 34bf97315..8debfd860 100644 --- a/roles/ceph-mon/tasks/main.yml +++ b/roles/ceph-mon/tasks/main.yml @@ -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 diff --git a/roles/ceph-nfs/tasks/main.yml b/roles/ceph-nfs/tasks/main.yml index 435628ed3..e395a1500 100644 --- a/roles/ceph-nfs/tasks/main.yml +++ b/roles/ceph-nfs/tasks/main.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: diff --git a/roles/ceph-osd/tasks/main.yml b/roles/ceph-osd/tasks/main.yml index d405cb75f..e54a27871 100644 --- a/roles/ceph-osd/tasks/main.yml +++ b/roles/ceph-osd/tasks/main.yml @@ -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 diff --git a/roles/ceph-rbd-mirror/tasks/main.yml b/roles/ceph-rbd-mirror/tasks/main.yml index c2e753f75..88d264e78 100644 --- a/roles/ceph-rbd-mirror/tasks/main.yml +++ b/roles/ceph-rbd-mirror/tasks/main.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: diff --git a/roles/ceph-restapi/tasks/main.yml b/roles/ceph-restapi/tasks/main.yml index 1507a193e..851b78ea0 100644 --- a/roles/ceph-restapi/tasks/main.yml +++ b/roles/ceph-restapi/tasks/main.yml @@ -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: diff --git a/roles/ceph-rgw/tasks/main.yml b/roles/ceph-rgw/tasks/main.yml index 549fcc1c6..1f7d589df 100644 --- a/roles/ceph-rgw/tasks/main.yml +++ b/roles/ceph-rgw/tasks/main.yml @@ -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: