{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/17967","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/17967/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/17967/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/17967/events","html_url":"https://github.com/ansible/ansible/pull/17967","id":182184640,"number":17967,"title":"add vars_dirs parameter like vars_files","user":{"login":"nohi","id":5591606,"avatar_url":"https://avatars.githubusercontent.com/u/5591606?v=3","gravatar_id":"","url":"https://api.github.com/users/nohi","html_url":"https://github.com/nohi","followers_url":"https://api.github.com/users/nohi/followers","following_url":"https://api.github.com/users/nohi/following{/other_user}","gists_url":"https://api.github.com/users/nohi/gists{/gist_id}","starred_url":"https://api.github.com/users/nohi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nohi/subscriptions","organizations_url":"https://api.github.com/users/nohi/orgs","repos_url":"https://api.github.com/users/nohi/repos","events_url":"https://api.github.com/users/nohi/events{/privacy}","received_events_url":"https://api.github.com/users/nohi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/feature_pull_request","name":"feature_pull_request","color":"006b75"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-11T06:37:01Z","updated_at":"2016-10-20T05:56:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/17967","html_url":"https://github.com/ansible/ansible/pull/17967","diff_url":"https://github.com/ansible/ansible/pull/17967.diff","patch_url":"https://github.com/ansible/ansible/pull/17967.patch"},"body":"##### ISSUE TYPE\r\n - Feature Pull Request\r\n\r\n##### COMPONENT NAME\r\ncore\r\n\r\n##### SUMMARY\r\nadd vars_dirs parameter in playbook.\r\nIf you specific vars_dirs, all vars files in dirs is included and appended to vars_files.\r\nIt helps to manage many vars_files and referrence from many playbook.\r\n\r\n##### EXAMPLE\r\n\r\n###### dir tree\r\n```\r\n<PLAYBOOK_DIR>\r\n    └── vars_dir\r\n        ├── foo.yml\r\n        ├── bar.yml\r\n        └── hoge.yml\r\n```\r\n\r\n###### playbook\r\n\r\n_normaly_\r\n```\r\n- hosts: hoge\r\n  vars_files:\r\n    - \"vars_dir/foo.yml\"\r\n    - \"vars_dir/bar.yml\"\r\n    - \"vars_dir/hoge.yml\"\r\n```\r\n\r\n_after_\r\n```\r\n- hosts: hoge\r\n  vars_dirs:\r\n    - \"vars_dir\"\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/255015975","html_url":"https://github.com/ansible/ansible/pull/17967#issuecomment-255015975","issue_url":"https://api.github.com/repos/ansible/ansible/issues/17967","id":255015975,"user":{"login":"nohi","id":5591606,"avatar_url":"https://avatars.githubusercontent.com/u/5591606?v=3","gravatar_id":"","url":"https://api.github.com/users/nohi","html_url":"https://github.com/nohi","followers_url":"https://api.github.com/users/nohi/followers","following_url":"https://api.github.com/users/nohi/following{/other_user}","gists_url":"https://api.github.com/users/nohi/gists{/gist_id}","starred_url":"https://api.github.com/users/nohi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nohi/subscriptions","organizations_url":"https://api.github.com/users/nohi/orgs","repos_url":"https://api.github.com/users/nohi/repos","events_url":"https://api.github.com/users/nohi/events{/privacy}","received_events_url":"https://api.github.com/users/nohi/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T05:56:45Z","updated_at":"2016-10-20T05:56:45Z","body":"If you ask me, It was implemented so as not to affect vars_files.\r\nShoud I change vars_files work with directory?"}}
{"actor":{"display_login":"nohi"}}