Problem:
We’ve run into an issue while trying to integrate ansible functionality into Foreman, after users try to modify the variables in the roles assigned to a host (specifically using the UI that is under the Hosts → Ansible → Variables tab) they get an error indicating missing permissions, however the missing permission itself is empty:
"data": {
"createAnsibleVariableOverride": null
},
"errors": [
{
"message": "Unauthorized. You do not have the required permission .",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"createAnsibleVariableOverride"
]
}
]
}
]
The weird part for me, if we go not through Ansible tab under the Host but into Ansible Variables directly and add a matcher specifying the fqdn manually - it works. Is it a bug?
Foreman and Proxy versions:
3.7.1
Foreman and Proxy plugin versions:
foreman_ansible - 12.0.6
P.S. If somebody would instruct me on what permission is missing - it would be appreciated.