{"action":"created","issue":{"url":"https://api.github.com/repos/v1v/ansible-role-chef-client/issues/5","repository_url":"https://api.github.com/repos/v1v/ansible-role-chef-client","labels_url":"https://api.github.com/repos/v1v/ansible-role-chef-client/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/v1v/ansible-role-chef-client/issues/5/comments","events_url":"https://api.github.com/repos/v1v/ansible-role-chef-client/issues/5/events","html_url":"https://github.com/v1v/ansible-role-chef-client/issues/5","id":49470089,"number":5,"title":"ANSIBLE: 'ansible_lsb' variable is undefined for CentOS","user":{"login":"v1v","id":2871786,"avatar_url":"https://avatars.githubusercontent.com/u/2871786?v=3","gravatar_id":"","url":"https://api.github.com/users/v1v","html_url":"https://github.com/v1v","followers_url":"https://api.github.com/users/v1v/followers","following_url":"https://api.github.com/users/v1v/following{/other_user}","gists_url":"https://api.github.com/users/v1v/gists{/gist_id}","starred_url":"https://api.github.com/users/v1v/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v1v/subscriptions","organizations_url":"https://api.github.com/users/v1v/orgs","repos_url":"https://api.github.com/users/v1v/repos","events_url":"https://api.github.com/users/v1v/events{/privacy}","received_events_url":"https://api.github.com/users/v1v/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2014-11-19T23:44:15Z","updated_at":"2016-05-23T15:48:36Z","closed_at":null,"body":"'ansible_lsb' is undefined\r\n\r\nWhat about using a default value? http://docs.ansible.com/playbooks_variables.html#forcing-variables-to-be-defined"},"comment":{"url":"https://api.github.com/repos/v1v/ansible-role-chef-client/issues/comments/221015229","html_url":"https://github.com/v1v/ansible-role-chef-client/issues/5#issuecomment-221015229","issue_url":"https://api.github.com/repos/v1v/ansible-role-chef-client/issues/5","id":221015229,"user":{"login":"charlesnagy","id":1372970,"avatar_url":"https://avatars.githubusercontent.com/u/1372970?v=3","gravatar_id":"","url":"https://api.github.com/users/charlesnagy","html_url":"https://github.com/charlesnagy","followers_url":"https://api.github.com/users/charlesnagy/followers","following_url":"https://api.github.com/users/charlesnagy/following{/other_user}","gists_url":"https://api.github.com/users/charlesnagy/gists{/gist_id}","starred_url":"https://api.github.com/users/charlesnagy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charlesnagy/subscriptions","organizations_url":"https://api.github.com/users/charlesnagy/orgs","repos_url":"https://api.github.com/users/charlesnagy/repos","events_url":"https://api.github.com/users/charlesnagy/events{/privacy}","received_events_url":"https://api.github.com/users/charlesnagy/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T15:48:36Z","updated_at":"2016-05-23T15:48:36Z","body":"Ansible loads the fact at the startup of the playbook. If you install `redhat-lsb-core` in the very same playbook you need to reread the `ansible_lsb` facts.\r\n\r\n```\r\n- yum: name=redhat-lsb-core state=present\r\n\r\n- name: Reread ansible_lsb facts\r\n  setup: filter=ansible_lsb*\r\n\r\n- debug: msg=\"Now you can read anything from ansible_lsb\"\r\n  when: ansible_lsb.major_release|int > 1 \r\n```\r\n"}}
{"actor":{"display_login":"charlesnagy"}}