{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/19536","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/19536/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/19536/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/19536/events","html_url":"https://github.com/ansible/ansible/pull/19536","id":196542015,"number":19536,"title":"Allow multiple options in ini_file","user":{"login":"GheRivero","id":246245,"avatar_url":"https://avatars.githubusercontent.com/u/246245?v=3","gravatar_id":"","url":"https://api.github.com/users/GheRivero","html_url":"https://github.com/GheRivero","followers_url":"https://api.github.com/users/GheRivero/followers","following_url":"https://api.github.com/users/GheRivero/following{/other_user}","gists_url":"https://api.github.com/users/GheRivero/gists{/gist_id}","starred_url":"https://api.github.com/users/GheRivero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GheRivero/subscriptions","organizations_url":"https://api.github.com/users/GheRivero/orgs","repos_url":"https://api.github.com/users/GheRivero/repos","events_url":"https://api.github.com/users/GheRivero/events{/privacy}","received_events_url":"https://api.github.com/users/GheRivero/received_events","type":"User","site_admin":false},"labels":[{"id":454885231,"url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.3","name":"affects_2.3","color":"5319e7","default":false},{"id":48457821,"url":"https://api.github.com/repos/ansible/ansible/labels/feature_pull_request","name":"feature_pull_request","color":"006b75","default":false},{"id":496359346,"url":"https://api.github.com/repos/ansible/ansible/labels/module","name":"module","color":"1d76db","default":false},{"id":54811101,"url":"https://api.github.com/repos/ansible/ansible/labels/needs_info","name":"needs_info","color":"eb6420","default":false},{"id":88746767,"url":"https://api.github.com/repos/ansible/ansible/labels/plugin","name":"plugin","color":"bfe5bf","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-19T22:55:55Z","updated_at":"2016-12-20T13:27:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/19536","html_url":"https://github.com/ansible/ansible/pull/19536","diff_url":"https://github.com/ansible/ansible/pull/19536.diff","patch_url":"https://github.com/ansible/ansible/pull/19536.patch"},"body":"Some ini files will allow an option to appear several times\r\nwith different values (e.g. systemd services files)\r\n\r\nAdd a new option, 'unique', defaulting to yes, to specifie if\r\na option can appears once or multiples times.\r\n\r\n##### ISSUE TYPE\r\n - Feature Pull Request\r\n\r\n##### COMPONENT NAME\r\ninit_file\r\n\r\n##### ANSIBLE VERSION\r\n2.3.0\r\n```\r\n\r\n```\r\n\r\n##### SUMMARY\r\nOptions in a ini file can appear multiple times in the same section. Until now, only one was allowed, deleting the rest.\r\n\r\n[default]\r\npath=/usr/bin\r\npath=/usr/sbin\r\n\r\n```\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/268242525","html_url":"https://github.com/ansible/ansible/pull/19536#issuecomment-268242525","issue_url":"https://api.github.com/repos/ansible/ansible/issues/19536","id":268242525,"user":{"login":"GheRivero","id":246245,"avatar_url":"https://avatars.githubusercontent.com/u/246245?v=3","gravatar_id":"","url":"https://api.github.com/users/GheRivero","html_url":"https://github.com/GheRivero","followers_url":"https://api.github.com/users/GheRivero/followers","following_url":"https://api.github.com/users/GheRivero/following{/other_user}","gists_url":"https://api.github.com/users/GheRivero/gists{/gist_id}","starred_url":"https://api.github.com/users/GheRivero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GheRivero/subscriptions","organizations_url":"https://api.github.com/users/GheRivero/orgs","repos_url":"https://api.github.com/users/GheRivero/repos","events_url":"https://api.github.com/users/GheRivero/events{/privacy}","received_events_url":"https://api.github.com/users/GheRivero/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T13:27:22Z","updated_at":"2016-12-20T13:27:22Z","body":"The behavior is exactly the same when unique=yes (default)\r\nWith unique: no, when updating, it simply adds a new option and checks that the (option, value) pair is not duplicated.\r\nWhen deleting with unique=no, it deletes only the first option occurrence (same as with unique=yes)... but I'm thinking that maybe it should delete all the options occurrences."}}
{"actor":{"display_login":"GheRivero"}}