templates/packer: use import_tasks instead of include_tasks
The tags don't get inherited through the dynamic `include_tasks` command. Use `import_tasks` to preserve the tags.
This commit is contained in:
parent
8f36b6f26e
commit
22e15da73c
2 changed files with 10 additions and 7 deletions
|
|
@ -1,19 +1,19 @@
|
|||
---
|
||||
|
||||
# Subscribe
|
||||
- include_tasks: subscribe.yml
|
||||
- import_tasks: subscribe.yml
|
||||
|
||||
# Install various software packages.
|
||||
- include_tasks: packages.yml
|
||||
- import_tasks: packages.yml
|
||||
|
||||
# Configure worker initialization service.
|
||||
- include_tasks: worker-initialization-service.yml
|
||||
- import_tasks: worker-initialization-service.yml
|
||||
|
||||
# Configure the worker.
|
||||
- include_tasks: worker-config.yml
|
||||
- import_tasks: worker-config.yml
|
||||
|
||||
# Unregister
|
||||
- include_tasks: unregister.yml
|
||||
- import_tasks: unregister.yml
|
||||
|
||||
- name: Ensure SELinux contexts are updated
|
||||
tags:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue