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:
|
||||
|
|
|
|||
|
|
@ -166,11 +166,14 @@ update-crypto-policies --set LEGACY
|
|||
EOF
|
||||
}
|
||||
|
||||
# Ansible is a little broken on fedora>39, needs python-six
|
||||
# Ansible is a little broken on fedora>39, needs python-six & 3.9
|
||||
# Installing python3.9 breaks dnf update with ansible, so do it here
|
||||
# first
|
||||
provisioner "shell" {
|
||||
only = ["amazon-ebs.fedora-40-x86_64", "amazon-ebs.fedora-40-aarch64"]
|
||||
inline = [
|
||||
"sudo dnf install -y python3.9"
|
||||
"sudo dnf install -y python3.9",
|
||||
"sudo dnf -y update"
|
||||
]
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue