From a99b0ed632c3843421e819bf0f284c9f42bba55a Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotjagov Date: Thu, 4 Apr 2019 18:18:10 +0300 Subject: [PATCH] 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 --- tasks/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index b6db4456..5748481b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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