{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3066","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3066/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3066/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3066/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/3066","id":134654791,"number":3066,"title":"yum reinstall results rpm \"does not update installed package\"","user":{"login":"gustavomcarmo","id":8548994,"avatar_url":"https://avatars.githubusercontent.com/u/8548994?v=3","gravatar_id":"","url":"https://api.github.com/users/gustavomcarmo","html_url":"https://github.com/gustavomcarmo","followers_url":"https://api.github.com/users/gustavomcarmo/followers","following_url":"https://api.github.com/users/gustavomcarmo/following{/other_user}","gists_url":"https://api.github.com/users/gustavomcarmo/gists{/gist_id}","starred_url":"https://api.github.com/users/gustavomcarmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gustavomcarmo/subscriptions","organizations_url":"https://api.github.com/users/gustavomcarmo/orgs","repos_url":"https://api.github.com/users/gustavomcarmo/repos","events_url":"https://api.github.com/users/gustavomcarmo/events{/privacy}","received_events_url":"https://api.github.com/users/gustavomcarmo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bug_report","name":"bug_report","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-02-18T18:19:23Z","updated_at":"2016-04-18T15:40:30Z","closed_at":null,"body":"##### Issue Type:\r\n\r\nBug Report\r\n\r\n##### Ansible Version:\r\n\r\n2.0.0.2\r\n\r\n##### Environment:\r\n\r\nRed Hat Enterprise Linux Server release 6.7\r\n\r\n##### Summary:\r\n\r\nSince I've upgraded the version from 1.9.4 to 2.0.0.2, the yum task executed more than once results the error:\r\n\r\n/var/tmp/yum-root-ABkoEr/jdk-7u79-linux-x64.rpm: does not update installed package.\r\n\r\n##### Steps To Reproduce:\r\n\r\nplaybook.yml:\r\n\r\n  tasks:\r\n  - name: Install oracle java 1.7.0_79\r\n    yum: name={{pkgrepo}}/java/jdk/jdk-7u79-linux-x64.rpm state=present\r\n\r\n##### Expected Results:\r\n\r\nok\r\n\r\n##### Actual Results:\r\n\r\nfailed"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/211437244","html_url":"https://github.com/ansible/ansible-modules-core/issues/3066#issuecomment-211437244","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3066","id":211437244,"user":{"login":"DamienGombaultRecia","id":12713493,"avatar_url":"https://avatars.githubusercontent.com/u/12713493?v=3","gravatar_id":"","url":"https://api.github.com/users/DamienGombaultRecia","html_url":"https://github.com/DamienGombaultRecia","followers_url":"https://api.github.com/users/DamienGombaultRecia/followers","following_url":"https://api.github.com/users/DamienGombaultRecia/following{/other_user}","gists_url":"https://api.github.com/users/DamienGombaultRecia/gists{/gist_id}","starred_url":"https://api.github.com/users/DamienGombaultRecia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DamienGombaultRecia/subscriptions","organizations_url":"https://api.github.com/users/DamienGombaultRecia/orgs","repos_url":"https://api.github.com/users/DamienGombaultRecia/repos","events_url":"https://api.github.com/users/DamienGombaultRecia/events{/privacy}","received_events_url":"https://api.github.com/users/DamienGombaultRecia/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T15:40:30Z","updated_at":"2016-04-18T15:40:30Z","body":"Hi.\r\n\r\nToday, I have updated my Fedora system with **ansible-2.0.1.0-2.fc23.noarch** (from ansible-**1.9.4-1.fc23.noarch**)\r\n\r\nSince the Ansible update, on my CentOS 7 (up to date) systems I get this error when the rpm is already installed:\r\n```\r\nTASK [packages/zabbix : install zabbix-release package] ************************\r\nfatal: [wiki-infra]: FAILED! => {\"changed\": true, \"failed\": true, \"msg\": \"Erreur : Rien à faire\\n\", \"rc\": 1, \"results\": [\"Modules complémentaires chargés : fastestmirror\\nExamen de /var/tmp/yum-root-DIrj2C/zabbix-release-3.0-1.el7.noarch.rpm : zabbix-release-3.0-1.el7.noarch\\n/var/tmp/yum-root-DIrj2C/zabbix-release-3.0-1.el7.noarch.rpm : ne met pas à jour le paquet installé.\\n\"]}\r\n```\r\n\r\nwith this task :\r\n```\r\n- name: install zabbix-release package\r\n  yum: name=http://repo.zabbix.com/zabbix/{{zabbix_version}}/rhel/{{ansible_distribution_major_version}}/x86_64/zabbix-release-{{zabbix_version}}-{{zabbix_release_build}}.el{{ansible_distribution_major_version}}.noarch.rpm state=present\r\n  when: ansible_distribution == 'CentOS'\r\n  tags: repositories\r\n```\r\n\r\nVariables :\r\n```\r\nzabbix_version: 3.0\r\nzabbix_release_build: 1\r\n```"}}