Apply tags to included tasks

In order to be able to use tags to run systemd_service role solely,
they must be applied properly when role is included.

Change-Id: Ic382ddfc0e79e3b9dfdeeaabdf131466127756f2
This commit is contained in:
Dmitriy Rabotyagov 2023-07-13 15:02:11 +02:00 committed by Dmitriy Rabotyagov
parent 94a58e398b
commit 05e3c0f183
1 changed files with 28 additions and 0 deletions

View File

@ -45,11 +45,19 @@
include_tasks: "ceph_preinstall_{{ ansible_facts['pkg_mgr'] }}.yml"
when:
- ceph_pkg_source != 'distro'
args:
apply:
tags:
- ceph-install
tags:
- ceph-install
- name: Including ceph_install tasks
include_tasks: ceph_install.yml
args:
apply:
tags:
- ceph-install
tags:
- ceph-install
@ -57,17 +65,29 @@
include_tasks: ceph_install_python_libs.yml
when:
- openstack_service_venv_bin | length > 0
args:
apply:
tags:
- ceph-install
tags:
- ceph-install
- name: Including ceph_get_mon_host tasks
include_tasks: ceph_get_mon_host.yml
when: ceph_conf_file is not defined or ceph_keyrings_dir is not defined
args:
apply:
tags:
- ceph-config
tags:
- ceph-config
- name: Including ceph_config tasks
include_tasks: ceph_config.yml
args:
apply:
tags:
- ceph-config
tags:
- ceph-config
@ -75,6 +95,10 @@
include_tasks: ceph_auth.yml
when:
- cephx | bool
args:
apply:
tags:
- ceph-config
tags:
- ceph-config
@ -82,6 +106,10 @@
include_tasks: ceph_immutable_object_cache.yml
when:
- ceph_immutable_object_cache_enabled | bool
args:
apply:
tags:
- ceph-config
tags:
- ceph-config