You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand that AWX is open source software provided for free and that I might not receive a timely response.
I am NOT reporting a (potential) security vulnerability. (These should be emailed to security@ansible.com instead.)
Bug Summary
All my hosts in my inventory have this variable hds (french acronym for health data hosting service). Its value is either true or false.
I have to create two smart inventories, one listing all hds: true hosts and one listing the hds: false ones.
This is the weird part. When I use host.variables__regex=^.*hds.*true.*$ I, as I expect, get all the hds hosts. But...
When I use host.variables__regex=^.*hds.*false.*$ I don't get the non hds hosts. Instead I get the full list of hosts available in my inventory.
My workaround at the moment is to use host.not__variables__regex=^.*hds.*true.*$. But I thought it would be a good bug to report.
AWX version
22.1.0
Select the relevant components
UI
UI (tech preview)
API
Docs
Collection
CLI
Other
Installation method
minikube
Modifications
no
Ansible version
No response
Operating system
No response
Web browser
No response
Steps to reproduce
Have a list of hosts, all with a variable hds set to true or false (boolean, not strings)
Create a smart inventory and try to filter the hds: false with this filter : host.variables__regex=^.*hds.*false.*$
Expected results
The hosts should only have the hosts set withhds: false
Actual results
All hosts are listed, like if no filter was set, even the ones with hds: true.
Additional information
The other way around (host.variables__regex=^.*hds.*true.*$) works as expected
The text was updated successfully, but these errors were encountered:
Please confirm the following
security@ansible.com
instead.)Bug Summary
All my hosts in my inventory have this variable
hds
(french acronym for health data hosting service). Its value is eithertrue
orfalse
.I have to create two smart inventories, one listing all
hds: true
hosts and one listing thehds: false
ones.This is the weird part. When I use
host.variables__regex=^.*hds.*true.*$
I, as I expect, get all thehds
hosts. But...When I use
host.variables__regex=^.*hds.*false.*$
I don't get thenon hds
hosts. Instead I get the full list of hosts available in my inventory.My workaround at the moment is to use
host.not__variables__regex=^.*hds.*true.*$
. But I thought it would be a good bug to report.AWX version
22.1.0
Select the relevant components
Installation method
minikube
Modifications
no
Ansible version
No response
Operating system
No response
Web browser
No response
Steps to reproduce
Have a list of hosts, all with a variable
hds
set totrue
orfalse
(boolean, not strings)Create a smart inventory and try to filter the
hds: false
with this filter :host.variables__regex=^.*hds.*false.*$
Expected results
The hosts should only have the hosts set with
hds: false
Actual results
All hosts are listed, like if no filter was set, even the ones with
hds: true
.Additional information
The other way around (
host.variables__regex=^.*hds.*true.*$
) works as expectedThe text was updated successfully, but these errors were encountered: