Build fails (v0.22.1) with libselinux-python error with Python 3.8 #1110
-
|
I'm trying to build Oracle Linux 8 but with Python 3.8 pre-installed to make later Ansible work easier. I modified builds/linux/oracle/8/data/ks.pkrtpl.hcl to read: And now I get this error: I guess it's looking for libselinux-python instead of libselinux-python3 (or python3-libselinux, which I also tried). How do I override that so it finds the right library version? |
Beta Was this translation helpful? Give feedback.
Answered by
tenthirtyam
Mar 13, 2026
Replies: 1 comment 1 reply
-
|
You'd need to set it in the provisioner "ansible" {
#...
ansible_env_vars = [
"ANSIBLE_CONFIG=${path.cwd}/ansible/ansible.cfg",
"ANSIBLE_PYTHON_INTERPRETER=/usr/libexec/platform-python"
]
#...
}
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tenthirtyam
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'd need to set it in the
provisionerblock.