{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3390","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3390/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3390/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3390/events","html_url":"https://github.com/ansible/ansible-modules-extras/pull/3390","id":187900750,"number":3390,"title":"[GCE] Add regex support to gce_tag module","user":{"login":"supertom","id":46346,"avatar_url":"https://avatars.githubusercontent.com/u/46346?v=3","gravatar_id":"","url":"https://api.github.com/users/supertom","html_url":"https://github.com/supertom","followers_url":"https://api.github.com/users/supertom/followers","following_url":"https://api.github.com/users/supertom/following{/other_user}","gists_url":"https://api.github.com/users/supertom/gists{/gist_id}","starred_url":"https://api.github.com/users/supertom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supertom/subscriptions","organizations_url":"https://api.github.com/users/supertom/orgs","repos_url":"https://api.github.com/users/supertom/repos","events_url":"https://api.github.com/users/supertom/events{/privacy}","received_events_url":"https://api.github.com/users/supertom/received_events","type":"User","site_admin":false},"labels":[{"id":132898074,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/cloud","name":"cloud","color":"c7def8","default":false},{"id":229425764,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/community_review","name":"community_review","color":"fad8c7","default":false},{"id":132898176,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/feature_pull_request","name":"feature_pull_request","color":"006b75","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-08T04:43:16Z","updated_at":"2016-12-08T02:23:03Z","closed_at":"2016-12-08T02:23:03Z","pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/3390","html_url":"https://github.com/ansible/ansible-modules-extras/pull/3390","diff_url":"https://github.com/ansible/ansible-modules-extras/pull/3390.diff","patch_url":"https://github.com/ansible/ansible-modules-extras/pull/3390.patch"},"body":"##### ISSUE TYPE\r\n - Feature Pull Request\r\n\r\n##### COMPONENT NAME\r\ngce_tag\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.3.0 (ans-auth a3df19e278) last updated 2016/11/04 22:30:47 (GMT +000)\r\n  lib/ansible/modules/core: (devel 48cd199871) last updated 2016/10/27 16:05:05 (GMT +000)\r\n  lib/ansible/modules/extras: (gce_tag_regex f1cf3901a7) last updated 2016/11/08 04:25:30 (GMT +000)\r\n  config file = /home/supertom/.ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### SUMMARY\r\nThe gce_tag module can support updating tags on multiple instances via an instance_pattern field.\r\n\r\n`instance_pattern` and `instance_name` are mutually exclusive and one must be specified.\r\n\r\nThe actual instances updated, and specifically the actual tags that have been modified are shown.  This information is available in the `instances_updated` dictionary.\r\n\r\n##### Example Output\r\n* Removing Tags\r\n```\r\nlocalhost | SUCCESS => {\r\n    \"changed\": true,\r\n    \"instance_pattern\": \"ansible\",\r\n    \"instances_updated\": [\r\n        {\r\n            \"instance_name\": \"ansible-host\",\r\n            \"tags_changed\": [\r\n                \"foo\",\r\n                \"bar\"\r\n            ]\r\n        },\r\n        {\r\n            \"instance_name\": \"ansible-myotherhost\",\r\n            \"tags_changed\": [\r\n                \"foo\",\r\n                \"bar\"\r\n            ]\r\n        }\r\n    ],\r\n    \"tags\": [\r\n        \"foo\",\r\n        \"bar\"\r\n    ],\r\n    \"zone\": \"us-central1-b\"\r\n}\r\n```\r\n\r\nAdding tags\r\n```\r\nlocalhost | SUCCESS => {\r\n    \"changed\": true,\r\n    \"instance_pattern\": \"ansible\",\r\n    \"instances_updated\": [\r\n        {\r\n            \"instance_name\": \"ansible-myhost\",\r\n            \"tags_changed\": [\r\n                \"foo\",\r\n                \"bar\"\r\n            ]\r\n        },\r\n        {\r\n            \"instance_name\": \"ansible-myotherhost\",\r\n            \"tags_changed\": [\r\n                \"foo\",\r\n                \"bar\"\r\n            ]\r\n        }\r\n    ],\r\n    \"tags\": [\r\n        \"foo\",\r\n        \"bar\"\r\n    ],\r\n    \"zone\": \"us-central1-b\"\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/265635069","html_url":"https://github.com/ansible/ansible-modules-extras/pull/3390#issuecomment-265635069","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3390","id":265635069,"user":{"login":"supertom","id":46346,"avatar_url":"https://avatars.githubusercontent.com/u/46346?v=3","gravatar_id":"","url":"https://api.github.com/users/supertom","html_url":"https://github.com/supertom","followers_url":"https://api.github.com/users/supertom/followers","following_url":"https://api.github.com/users/supertom/following{/other_user}","gists_url":"https://api.github.com/users/supertom/gists{/gist_id}","starred_url":"https://api.github.com/users/supertom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supertom/subscriptions","organizations_url":"https://api.github.com/users/supertom/orgs","repos_url":"https://api.github.com/users/supertom/repos","events_url":"https://api.github.com/users/supertom/events{/privacy}","received_events_url":"https://api.github.com/users/supertom/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T02:23:03Z","updated_at":"2016-12-08T02:23:03Z","body":"Closing this.  I've merged this into ansible/ansible#18536 now that tests and modules can be in the same PR (!)."}}
{"actor":{"display_login":"supertom"}}