Switch to import_tasks when tags should be applied

change include_tasks to import_tasks so that the
tags in the role will work.

Change-Id: I9e9de952be461d026f84677390eed31e814b7876
This commit is contained in:
Dmitriy Rabotjagov 2019-04-04 18:18:10 +03:00
parent 6e5d8f4ae0
commit a99b0ed632
1 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@
- openstack_hosts-install
# Deploy the release file everywhere
- include_tasks: openstack_release.yml
- import_tasks: openstack_release.yml
tags:
- openstack_hosts-install
@ -49,7 +49,7 @@
# Configure host files should apply to all nodes
- name: Configure etc hosts files
include_tasks: openstack_update_hosts_file.yml
import_tasks: openstack_update_hosts_file.yml
when:
- openstack_host_manage_hosts_file | bool
tags:
@ -68,7 +68,7 @@
include_tasks: "openstack_hosts_configure_{{ ansible_pkg_mgr | lower }}.yml"
# Configure bare metal nodes: Kernel, sysctl, sysstat, hosts files, metal packages
- include_tasks: configure_metal_hosts.yml
- import_tasks: configure_metal_hosts.yml
when:
- not is_container
tags:
@ -96,6 +96,6 @@
retries: 5
delay: 2
- include_tasks: openstack_authorized_keys.yml
- import_tasks: openstack_authorized_keys.yml
tags:
- openstack_hosts-config