{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/37980","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/37980/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/37980/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/37980/events","html_url":"https://github.com/ansible/ansible/issues/37980","id":308861460,"number":37980,"title":"certain conditionals cannot be used in the until loop in 2.5","user":{"login":"IvanovOleg","id":9047397,"avatar_url":"https://avatars2.githubusercontent.com/u/9047397?v=4","gravatar_id":"","url":"https://api.github.com/users/IvanovOleg","html_url":"https://github.com/IvanovOleg","followers_url":"https://api.github.com/users/IvanovOleg/followers","following_url":"https://api.github.com/users/IvanovOleg/following{/other_user}","gists_url":"https://api.github.com/users/IvanovOleg/gists{/gist_id}","starred_url":"https://api.github.com/users/IvanovOleg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IvanovOleg/subscriptions","organizations_url":"https://api.github.com/users/IvanovOleg/orgs","repos_url":"https://api.github.com/users/IvanovOleg/repos","events_url":"https://api.github.com/users/IvanovOleg/events{/privacy}","received_events_url":"https://api.github.com/users/IvanovOleg/received_events","type":"User","site_admin":false},"labels":[{"id":686214011,"url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.5","name":"affects_2.5","color":"ededed","default":false},{"id":785271699,"url":"https://api.github.com/repos/ansible/ansible/labels/bug","name":"bug","color":"fbca04","default":true},{"id":636352796,"url":"https://api.github.com/repos/ansible/ansible/labels/support:core","name":"support:core","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-03-27T08:02:11Z","updated_at":"2018-03-27T15:08:24Z","closed_at":"2018-03-27T15:08:24Z","author_association":"NONE","body":"<!---\r\nVerify first that your issue/request is not already reported on GitHub.\r\nAlso test if the latest release, and devel branch are affected too.\r\nAlways add information AFTER of these html comments.\r\n-->\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest -->\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\n<!---\r\nInsert below this comment the name of the module, plugin, task or feature.\r\nDo not include extra details here, e.g. \"vyos_command\" not \"the network module vyos_command\" or the full path\r\n-->\r\nuntil loop\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from \"ansible --version\" between quotes below -->\r\n```\r\n2.5.0\r\n```\r\n\r\n##### CONFIGURATION\r\n<!---\r\nIf using Ansible 2.4 or above, paste the results of \"ansible-config dump --only-changed\"\r\nOtherwise, mention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).\r\n-->\r\n\r\n##### OS / ENVIRONMENT\r\n<!---\r\nMention the OS you are running Ansible from, and the OS you are\r\nmanaging, or say \"N/A\" for anything that is not platform-specific.\r\nAlso mention the specific version of what you are trying to control,\r\ne.g. if this is a network bug the version of firmware on the network device.\r\n-->\r\nCentos 7.4\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nIf all packages are up to date, yum module throws an error.\r\n##### STEPS TO REPRODUCE\r\n<!---\r\nFor bugs, show exactly how to reproduce the problem, using a minimal test-case.\r\nFor new features, show how the feature would be used.\r\n-->\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n**install_packages.yml**\r\n```\r\n---\r\n\r\n- name: Install a yum packages\r\n  yum:\r\n    name: \"{{ item }}\"\r\n    state: latest\r\n    update_cache: yes\r\n  with_items: \"{{ yum_packages }}\"\r\n  register: result\r\n  until: '\"failed\" not in result'\r\n  retries: 10\r\n  delay: 10\r\n\r\n```\r\n**install.yml**\r\n\r\n```\r\n- name: Install the the yum packages\r\n  become: True\r\n  import_tasks: ../../../tasks/install_packages.yml\r\n  vars:\r\n    yum_packages:\r\n      - \"@Development tools\"\r\n      - gmp-devel\r\n      - python-devel\r\n      - zlib-devel\r\n      - bzip2-devel\r\n      - openssl-devel\r\n      - ncurses-devel\r\n      - sqlite-devel\r\n      - readline-devel\r\n      - tk-devel\r\n      - gdbm-devel\r\n      - libpcap-devel\r\n      - xz-devel\r\n      - expat-devel\r\n      - libcurl-devel\r\n      - perl-devel\r\n      - libunwind.x86_64\r\n      - icu\r\n```\r\n\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\n<!--- What did you expect to happen when running the steps above? -->\r\n`ok: [hostname]`\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\r\n```\r\nfailed: [hostname] (item=[u'@Development tools', u'gmp-devel', u'python-devel', u'zlib-devel', u'bzip2-devel', u'openssl-devel', u'ncurses-devel', u'sqlite-devel', u'readline-devel', u'tk-devel', u'gdbm-devel', u'libpcap-devel', u'xz-devel', u'expat-devel', u'libcurl-devel', u'perl-devel', u'libunwind.x86_64', u'icu']) => {\"attempts\": 10, \"changed\": false, \"item\": [\"@Development tools\", \"gmp-devel\", \"python-devel\", \"zlib-devel\", \"bzip2-devel\", \"openssl-devel\", \"ncurses-devel\", \"sqlite-devel\", \"readline-devel\", \"tk-devel\", \"gdbm-devel\", \"libpcap-devel\", \"xz-devel\", \"expat-devel\", \"libcurl-devel\", \"perl-devel\", \"libunwind.x86_64\", \"icu\"], \"msg\": \"\", \"rc\": 0, \"results\": [\"All packages providing gmp-devel are up to date\", \"All packages providing python-devel are up to date\", \"All packages providing zlib-devel are up to date\", \"All packages providing bzip2-devel are up to date\", \"All packages providing openssl-devel are up to date\", \"All packages providing ncurses-devel are up to date\", \"All packages providing sqlite-devel are up to date\", \"All packages providing readline-devel are up to date\", \"All packages providing tk-devel are up to date\", \"All packages providing gdbm-devel are up to date\", \"All packages providing libpcap-devel are up to date\", \"All packages providing xz-devel are up to date\", \"All packages providing expat-devel are up to date\", \"All packages providing libcurl-devel are up to date\", \"All packages providing perl-devel are up to date\", \"All packages providing libunwind.x86_64 are up to date\", \"All packages providing icu are up to date\", \"Loaded plugins: fastestmirror, langpacks\\nLoading mirror speeds from cached hostfile\\nPackage 1:gmp-devel-6.0.0-15.el7.x86_64 already installed and latest version\\nPackage python-devel-2.7.5-58.el7.x86_64 already installed and latest version\\nPackage zlib-devel-1.2.7-17.el7.x86_64 already installed and latest version\\nPackage bzip2-devel-1.0.6-13.el7.x86_64 already installed and latest version\\nPackage 1:openssl-devel-1.0.2k-8.el7.x86_64 already installed and latest version\\nPackage ncurses-devel-5.9-14.20130511.el7_4.x86_64 already installed and latest version\\nPackage sqlite-devel-3.7.17-8.el7.x86_64 already installed and latest version\\nPackage readline-devel-6.2-10.el7.x86_64 already installed and latest version\\nPackage 1:tk-devel-8.5.13-6.el7.x86_64 already installed and latest version\\nPackage gdbm-devel-1.10-8.el7.x86_64 already installed and latest version\\nPackage 14:libpcap-devel-1.5.3-9.el7.x86_64 already installed and latest version\\nPackage xz-devel-5.2.2-1.el7.x86_64 already installed and latest version\\nPackage expat-devel-2.1.0-10.el7_3.x86_64 already installed and latest version\\nPackage libcurl-devel-7.29.0-42.el7_4.1.x86_64 already installed and latest version\\nPackage 4:perl-devel-5.16.3-292.el7.x86_64 already installed and latest version\\nPackage 2:libunwind-1.2-2.el7.x86_64 already installed and latest version\\nPackage icu-50.1.2-15.el7.x86_64 already installed and latest version\\nNothing to do\\n\"]}\r\n```\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/376560685","html_url":"https://github.com/ansible/ansible/issues/37980#issuecomment-376560685","issue_url":"https://api.github.com/repos/ansible/ansible/issues/37980","id":376560685,"user":{"login":"mkrizek","id":1215518,"avatar_url":"https://avatars2.githubusercontent.com/u/1215518?v=4","gravatar_id":"","url":"https://api.github.com/users/mkrizek","html_url":"https://github.com/mkrizek","followers_url":"https://api.github.com/users/mkrizek/followers","following_url":"https://api.github.com/users/mkrizek/following{/other_user}","gists_url":"https://api.github.com/users/mkrizek/gists{/gist_id}","starred_url":"https://api.github.com/users/mkrizek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkrizek/subscriptions","organizations_url":"https://api.github.com/users/mkrizek/orgs","repos_url":"https://api.github.com/users/mkrizek/repos","events_url":"https://api.github.com/users/mkrizek/events{/privacy}","received_events_url":"https://api.github.com/users/mkrizek/received_events","type":"User","site_admin":false},"created_at":"2018-03-27T15:08:24Z","updated_at":"2018-03-27T15:08:24Z","author_association":"CONTRIBUTOR","body":"Closing as per the above comment."}}
{"actor":{"display_login":"mkrizek"}}