I have awx installed through k3s.
I have configured an instance group with two instance eexecution nodes, one of which is attested on a dmz.
For testing, I left only the instance node active in dmz. Quado I run a template using the instance group, however, I get the following error:
unable to read either as JSON nor YAML, these are the errors we got from each:
JSON: Expecting value: line 1 column 1 (char 0) Syntax Error while loading
YAML. did not find expected key The error appears to be in
'/runner/inventory/hosts': line 3, column 91, but may be elsewhere in the file
depending on the exact syntax problem. The offending line appears to be: #
-*- coding: utf-8 -*- print('{"all": {"hosts": ["server1",
"server2"]}, "_meta": {"hostvars":
{"server1": {"remote_host_enabled": "true",
"remote_host_id": 167, "remote_tower_enabled": "true", "remote_tower_id": 167},
"server2": {"remote_host_enabled": "true",
"remote_host_id": 166, "remote_tower_enabled": "true", "remote_tower_id":
166}}}}')
^ here We could be wrong, but this one looks like it might be an issue with
unbalanced quotes. If starting a value with a quote, make sure the line ends
with the same set of quotes. For instance this arbitrary example: foo:
"bad" "wolf" Could be written as: foo: '"bad" "wolf"'
[WARNING]: * Failed to parse /runner/inventory/hosts with ini plugin: host
range must be begin:end or begin:end:step
[WARNING]: Unable to parse /runner/inventory/hosts as an inventory source
[WARNING]: Unable to parse /runner/inventory as an inventory source
ERROR! No inventory was parsed, please check your configuration and options.
If I deactivate the instance node in DMZ and activate the other one present in the instance group the error does not occur
What could be the problem?