Skip to content

Commit

Permalink
rbdmirror: refact tasks directory layout
Browse files Browse the repository at this point in the history
This commit moves containerized deployment related files to `./tasks/`
directory. This is needed to make `docker-to-podman.yml` working since
we use `tasks_from:` option.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
  • Loading branch information
guits authored and dsavineau committed Oct 1, 2019
1 parent 4636f3f commit c69816c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions infrastructure-playbooks/docker-to-podman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@

- import_role:
name: ceph-rbd-mirror
tasks_from: container/systemd.yml
tasks_from: systemd.yml
when: inventory_hostname in groups.get(rbdmirror_group_name, [])

- import_role:
name: ceph-rgw
tasks_from: container/systemd.yml
when: inventory_hostname in groups.get(rgw_group_name, [])
when: inventory_hostname in groups.get(rgw_group_name, [])
3 changes: 0 additions & 3 deletions roles/ceph-rbd-mirror/tasks/container/main.yml

This file was deleted.

4 changes: 2 additions & 2 deletions roles/ceph-rbd-mirror/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
set_fact:
container_exec_cmd: "{{ container_binary }} exec ceph-rbd-mirror-{{ ansible_hostname }}"

- name: include container/main.yml
include_tasks: container/main.yml
- name: include start_docker_rbd_mirror.yml
include_tasks: start_docker_rbd_mirror.yml

- name: include configure_mirroring.yml
include_tasks: configure_mirroring.yml
Expand Down
File renamed without changes.

0 comments on commit c69816c

Please sign in to comment.