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
Guillaume Abrioux 2017-10-04 10:39:17 +02:00 committed by Sébastien Han
parent 5968cf09b1
commit 784cc73da0
9 changed files with 54 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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:

View File

@ -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

View File

@ -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:

View File

@ -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:

View File

@ -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: