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
|
# Subscribe
|
||||||
- include_tasks: subscribe.yml
|
- import_tasks: subscribe.yml
|
||||||
|
|
||||||
# Install various software packages.
|
# Install various software packages.
|
||||||
- include_tasks: packages.yml
|
- import_tasks: packages.yml
|
||||||
|
|
||||||
# Configure worker initialization service.
|
# Configure worker initialization service.
|
||||||
- include_tasks: worker-initialization-service.yml
|
- import_tasks: worker-initialization-service.yml
|
||||||
|
|
||||||
# Configure the worker.
|
# Configure the worker.
|
||||||
- include_tasks: worker-config.yml
|
- import_tasks: worker-config.yml
|
||||||
|
|
||||||
# Unregister
|
# Unregister
|
||||||
- include_tasks: unregister.yml
|
- import_tasks: unregister.yml
|
||||||
|
|
||||||
- name: Ensure SELinux contexts are updated
|
- name: Ensure SELinux contexts are updated
|
||||||
tags:
|
tags:
|
||||||
|
|
|
||||||
|
|
@ -166,11 +166,14 @@ update-crypto-policies --set LEGACY
|
||||||
EOF
|
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" {
|
provisioner "shell" {
|
||||||
only = ["amazon-ebs.fedora-40-x86_64", "amazon-ebs.fedora-40-aarch64"]
|
only = ["amazon-ebs.fedora-40-x86_64", "amazon-ebs.fedora-40-aarch64"]
|
||||||
inline = [
|
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