Apply variable to task not the block

- use static import of role since dynamic is not required
- apply variables to the task, not the block
- remove block since it does not appear to be necessary

Change-Id: I9cb0dd38c972ed0e81cbd7228490018d600eaa5c
(cherry picked from commit f6a6fb459a)
This commit is contained in:
Sam Doran 2018-10-17 17:35:58 -04:00 committed by Emilien Macchi
parent d482d68c62
commit 3f0ee886cb
1 changed files with 2 additions and 3 deletions

View File

@ -68,7 +68,6 @@ outputs:
step_config: ''
host_prep_tasks:
- name: Red Hat Subscription Management configuration
import_role:
name: redhat-subscription
vars: {get_attr: [RoleParametersValue, value, vars]}
block:
- include_role:
name: redhat-subscription