{"action":"created","issue":{"url":"https://api.github.com/repos/ANXS/postgresql/issues/137","labels_url":"https://api.github.com/repos/ANXS/postgresql/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/ANXS/postgresql/issues/137/comments","events_url":"https://api.github.com/repos/ANXS/postgresql/issues/137/events","html_url":"https://github.com/ANXS/postgresql/pull/137","id":124475950,"number":137,"title":"Added workaround locale_gen bug on Ubuntu","user":{"login":"FlyersWeb","id":1284983,"avatar_url":"https://avatars.githubusercontent.com/u/1284983?v=3","gravatar_id":"","url":"https://api.github.com/users/FlyersWeb","html_url":"https://github.com/FlyersWeb","followers_url":"https://api.github.com/users/FlyersWeb/followers","following_url":"https://api.github.com/users/FlyersWeb/following{/other_user}","gists_url":"https://api.github.com/users/FlyersWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/FlyersWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FlyersWeb/subscriptions","organizations_url":"https://api.github.com/users/FlyersWeb/orgs","repos_url":"https://api.github.com/users/FlyersWeb/repos","events_url":"https://api.github.com/users/FlyersWeb/events{/privacy}","received_events_url":"https://api.github.com/users/FlyersWeb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-31T14:29:34Z","updated_at":"2016-01-05T14:19:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ANXS/postgresql/pulls/137","html_url":"https://github.com/ANXS/postgresql/pull/137","diff_url":"https://github.com/ANXS/postgresql/pull/137.diff","patch_url":"https://github.com/ANXS/postgresql/pull/137.patch"},"body":"Issue referenced on https://github.com/ansible/ansible-modules-extras/issues/425#issuecomment-99907214\r\nIn some cases locale_gen do not works on Ubuntu systems\r\nI applied recommanded typo3 workaround using native command"},"comment":{"url":"https://api.github.com/repos/ANXS/postgresql/issues/comments/169012734","html_url":"https://github.com/ANXS/postgresql/pull/137#issuecomment-169012734","issue_url":"https://api.github.com/repos/ANXS/postgresql/issues/137","id":169012734,"user":{"login":"farridav","id":2966253,"avatar_url":"https://avatars.githubusercontent.com/u/2966253?v=3","gravatar_id":"","url":"https://api.github.com/users/farridav","html_url":"https://github.com/farridav","followers_url":"https://api.github.com/users/farridav/followers","following_url":"https://api.github.com/users/farridav/following{/other_user}","gists_url":"https://api.github.com/users/farridav/gists{/gist_id}","starred_url":"https://api.github.com/users/farridav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/farridav/subscriptions","organizations_url":"https://api.github.com/users/farridav/orgs","repos_url":"https://api.github.com/users/farridav/repos","events_url":"https://api.github.com/users/farridav/events{/privacy}","received_events_url":"https://api.github.com/users/farridav/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T14:19:07Z","updated_at":"2016-01-05T14:19:07Z","body":"I would just add another commit onto your master branch, and push it up.. it should appear in the diff...\r\n\r\nalso I generally try to avoid using `ignore_errors`, instead I would try and avoid the task running unless it needs to..  something like this would work:\r\n\r\n```\r\n- name: PostgreSQL | Get locales\r\n  shell: locale -a\r\n  register: locales\r\n\r\n- name: PostgreSQL | Ensure the locale is generated\r\n  sudo: yes\r\n  shell: locale-gen {{postgresql_locale.split('.').0}}\r\n  when: \"'{{postgresql_locale.split('.').0 }}' not in locales.stdout\"\r\n```\r\nHeres ansibles explanation of idempotency http://docs.ansible.com/ansible/glossary.html#idempotency"}}