{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/31690","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/31690/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/31690/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/31690/events","html_url":"https://github.com/ansible/ansible/issues/31690","id":265244898,"node_id":"MDU6SXNzdWUyNjUyNDQ4OTg=","number":31690,"title":"os_server_facts should have better regexp","user":{"login":"fredleger","id":2778741,"node_id":"MDQ6VXNlcjI3Nzg3NDE=","avatar_url":"https://avatars3.githubusercontent.com/u/2778741?v=4","gravatar_id":"","url":"https://api.github.com/users/fredleger","html_url":"https://github.com/fredleger","followers_url":"https://api.github.com/users/fredleger/followers","following_url":"https://api.github.com/users/fredleger/following{/other_user}","gists_url":"https://api.github.com/users/fredleger/gists{/gist_id}","starred_url":"https://api.github.com/users/fredleger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredleger/subscriptions","organizations_url":"https://api.github.com/users/fredleger/orgs","repos_url":"https://api.github.com/users/fredleger/repos","events_url":"https://api.github.com/users/fredleger/events{/privacy}","received_events_url":"https://api.github.com/users/fredleger/received_events","type":"User","site_admin":false},"labels":[{"id":454885231,"node_id":"MDU6TGFiZWw0NTQ4ODUyMzE=","url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.3","name":"affects_2.3","color":"5319e7","default":false},{"id":61528803,"node_id":"MDU6TGFiZWw2MTUyODgwMw==","url":"https://api.github.com/repos/ansible/ansible/labels/cloud","name":"cloud","color":"c7def8","default":false},{"id":852590921,"node_id":"MDU6TGFiZWw4NTI1OTA5MjE=","url":"https://api.github.com/repos/ansible/ansible/labels/feature","name":"feature","color":"006b75","default":false},{"id":496359346,"node_id":"MDU6TGFiZWw0OTYzNTkzNDY=","url":"https://api.github.com/repos/ansible/ansible/labels/module","name":"module","color":"1d76db","default":false},{"id":379682897,"node_id":"MDU6TGFiZWwzNzk2ODI4OTc=","url":"https://api.github.com/repos/ansible/ansible/labels/openstack","name":"openstack","color":"c5def5","default":false},{"id":636327968,"node_id":"MDU6TGFiZWw2MzYzMjc5Njg=","url":"https://api.github.com/repos/ansible/ansible/labels/support:community","name":"support:community","color":"ededed","default":false},{"id":486238465,"node_id":"MDU6TGFiZWw0ODYyMzg0NjU=","url":"https://api.github.com/repos/ansible/ansible/labels/waiting_on_contributor","name":"waiting_on_contributor","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-10-13T10:38:03Z","updated_at":"2018-11-02T01:00:55Z","closed_at":null,"author_association":"NONE","body":"##### ISSUE TYPE\r\n - Feature Idea\r\n\r\n##### COMPONENT NAME\r\nos_server_facts\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.3.2.0\r\n  config file = /Users/frederic/.ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n  python version = 2.7.13 (default, Jul 18 2017, 09:17:00) [GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)]\r\n```\r\n\r\n##### CONFIGURATION\r\nno specific related options\r\n\r\n##### OS / ENVIRONMENT\r\nAll / openstack\r\n\r\n##### SUMMARY\r\nWhen using dynamic inventories with os_* modules it should be nice to have openstack support more than fname (which is limited to matching file style glob patterns). i guess using python RE module is a quick win\r\n\r\nToday something like that is impossible:\r\n```YAML\r\n- hosts: localhost\r\n  tasks:\r\n    - name: get openstack servers\r\n       os_server_facts:\r\n       server: \"web*|app*|^(db)\"\r\n```\r\n\r\nIt's also inconsistant with the format used in command line & playbooks glob patterns :\r\n```\r\nweb*:app*:!db\r\n```\r\n\r\n##### STEPS TO REPRODUCE\r\nsee above exemples\r\n\r\n##### EXPECTED RESULTS\r\nA nice one should be to have same regexp code to handle glob patterns in command line, playbooks and inventories to be consistant. If not the support for basic regexp could be a descent solution.\r\n\r\n##### ACTUAL RESULTS\r\nNo results returned"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/435237249","html_url":"https://github.com/ansible/ansible/issues/31690#issuecomment-435237249","issue_url":"https://api.github.com/repos/ansible/ansible/issues/31690","id":435237249,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTIzNzI0OQ==","user":{"login":"ansibot","id":6585283,"node_id":"MDQ6VXNlcjY1ODUyODM=","avatar_url":"https://avatars0.githubusercontent.com/u/6585283?v=4","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2018-11-02T01:00:55Z","updated_at":"2018-11-02T01:00:55Z","author_association":"CONTRIBUTOR","body":"cc @cloudnull @evrardjp @odyssey4me\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: notify --->"}}
{"actor":{"display_login":"ansibot"}}