Modify import_role to include_role for boot params service
Using static import_role, make the vars defined under the import_role task to be available for the whole PLAY itself, which is causing the role-specific parameter to be available in other roles. Move to dynamic include_role, which will define these variables only for the included ansible role. Closes-Bug: #1859129 Change-Id: I402db858526def9dfd33f954f1ecd885c01f4367
This commit is contained in:
parent
c93fd13fef
commit
8d6edac637
@ -85,14 +85,14 @@ outputs:
|
||||
# But the configuration in that service has to be moved from host_prep_tasks to step 0 of deploy_step_tasks
|
||||
- name: Configure tuned before reboot
|
||||
when: step|int == 0
|
||||
import_role:
|
||||
include_role:
|
||||
name: tuned
|
||||
vars:
|
||||
tuned_profile: {get_attr: [RoleParametersValue, value, tuned_profile]}
|
||||
tuned_isolated_cores: {get_attr: [RoleParametersValue, value, isolated_cores]}
|
||||
- name: Configure kernel args and reboot
|
||||
when: step|int == 0
|
||||
import_role:
|
||||
include_role:
|
||||
name: tripleo-kernel
|
||||
tasks_from: kernelargs.yml
|
||||
vars:
|
||||
|
Loading…
Reference in New Issue
Block a user