In the above, a new profile is created based on the CentOS one. This is done so that specific kickstart metadata (the ksmeta options) can be assigned to it. The kickstart metadata will be listed as variables in the Ansible inventory. Two new systems are then created using the new profile, assigned to a management class (the equivalent of a group in Ansible), and additional metadata are assigned to it.
When viewed with --host, the foo server would look like this:
{
"a": "2",
"b": "3",
"c": "4"
}
while bar would look like this:
{
"a": "2",
"b": "3",
"c": "5"
}