Commit fafd5f87 authored by Francesco Pantano's avatar Francesco Pantano Committed by Guillaume Abrioux
Browse files

Add ceph_client tag to execute or skip the playbook



There are some use cases where there's a need to skip the execution
of the ceph-ansible client role even though the client section of the
inventory isn't empty.
This can happen in contexts where the services are colocated or when
a all-in-one deployment is performed.
The purpose of this change is adding a 'ceph_client' tag to avoid
altering the ceph-ansible execution flow but at the same time be able
to include or exclude a set of tasks using this tag.
Signed-off-by: default avatarFrancesco Pantano <fpantano@redhat.com>
parent 3e492583
......@@ -282,18 +282,19 @@
- import_role:
name: ceph-defaults
tags: ['ceph_update_config']
tags: ['ceph_update_config', 'ceph_client']
- import_role:
name: ceph-facts
tags: ['ceph_update_config']
tags: ['ceph_update_config', 'ceph_client']
- import_role:
name: ceph-handler
tags: ['ceph_update_config']
tags: ['ceph_update_config', 'ceph_client']
- import_role:
name: ceph-config
tags: ['ceph_update_config']
tags: ['ceph_update_config', 'ceph_client']
- import_role:
name: ceph-client
tags: ['ceph_client']
# post-tasks for preceding imports -
- name: set ceph client install 'Complete'
......
......@@ -271,18 +271,19 @@
tasks:
- import_role:
name: ceph-defaults
tags: ['ceph_update_config']
tags: ['ceph_update_config', 'ceph_client']
- import_role:
name: ceph-facts
tags: ['ceph_update_config']
tags: ['ceph_update_config', 'ceph_client']
- import_role:
name: ceph-handler
tags: ['ceph_update_config']
tags: ['ceph_update_config', 'ceph_client']
- import_role:
name: ceph-config
tags: ['ceph_update_config']
tags: ['ceph_update_config', 'ceph_client']
- import_role:
name: ceph-client
tags: ['ceph_client']
post_tasks:
- name: set ceph client install 'Complete'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment