In EX403 exam, there are two objectives about using ansible roles/variables in kickstarts. After searching a bit, I couldn't find any useful resource on this specific topic. Is this even possible?
Thanks in advance,
Can you be more specific on what is needed to achieve? Using Ansible roles assigned to a host/group and parameters defined it should be possible to apply those on host provisionning. Is it what you refer to?
It's been a long time, but checking the updated objectives, these are not listed.
If you check the wayback machine link(https://web.archive.org/web/20210924012245/https://www.redhat.com/en/services/training/ex403-red-hat...), there are two additional objectives:
Of course, you can use vars and roles for host provisioning, but I don't think you can use those on a kickstart file.
- Generate custom kickstart files using ansible roles/vars (which is out of scope for the specific exam)
- Too vague objective, that's why it has been removed/rephrased.
Thanks, that clarifies why it was removed from the exam scope.
However, it might be possible to use Ansible roles and variables from the kickstart. A script in a post block would have to install roles and playbooks and then execute them. This might use host variables as an input. That's feasible, but rather difficult to manage.