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:
parent
6e5d8f4ae0
commit
a99b0ed632
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue