Name : ansible Version : 1.9.2 I've got a simple play
--- - hosts: all tasks: - name: debug debug: msg: "{{ item }}" with_items: - foreman_discovery - foreman_default_hostgroup tags: foreman-plugins-debug - name: debug install plugin debug: msg: "ruby193-rubygem-{{ item }}" with_items: - foreman_discovery - foreman_default_hostgroup tags: foreman-plugins-debug - name: install plugins yum: name='ruby193-rubygem-{{ item }}' state=present with_items: - foreman_discovery - foreman_default_hostgroup tags: - foreman-plugins-install - foreman-plugins-debug that fails PLAY [all] ******************************************************************** GATHERING FACTS *************************************************************** ok: [foreman.qa.linx.sbx.avp.ru] TASK: [debug] ***************************************************************** ok: [foreman.qa.linx.sbx.avp.ru] => (item=foreman_discovery) => { "item": "foreman_discovery", "msg": "foreman_discovery" } ok: [foreman.qa.linx.sbx.avp.ru] => (item=foreman_default_hostgroup) => { "item": "foreman_default_hostgroup", "msg": "foreman_default_hostgroup" } TASK: [debug install plugin] ************************************************** ok: [foreman.qa.linx.sbx.avp.ru] => (item=foreman_discovery) => { "item": "foreman_discovery", "msg": "ruby193-rubygem-foreman_discovery" } ok: [foreman.qa.linx.sbx.avp.ru] => (item=foreman_default_hostgroup) => { "item": "foreman_default_hostgroup", "msg": "ruby193-rubygem-foreman_default_hostgroup" } TASK: [install plugins] ******************************************************* failed: [foreman.qa.linx.sbx.avp.ru] => (item=foreman_discovery,foreman_default_hostgroup) => {"changed": false, "failed": true, "item": "foreman_discovery,foreman_default_hostgroup", "rc": 0, "results": ["ruby193-rubygem-foreman_discovery-4.0.0-1.fm1_9.el7.noarch providing ruby193-rubygem-foreman_discovery is already installed"]} msg: No Package matching 'foreman_default_hostgroup' found available, installed or updated FATAL: all hosts have already failed -- aborting at the same time $ yum install -q ruby193-rubygem-foreman_discovery ruby193-rubygem- foreman_default_hostgroup ========================================================================================================================================================================================================= Package Arch Version Repository Size ========================================================================================================================================================================================================= Installing: ruby193-rubygem-foreman_default_hostgroup noarch 3.0.0-1.el7 foreman-plugins 19 k ruby193-rubygem-foreman_discovery noarch 4.0.0-1.fm1_9.el7 foreman-plugins 206 k Transaction Summary ========================================================================================================================================================================================================= Install 2 Packages Is this ok [y/d/N]: y succeed How can I workaround this? Thanks! -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/306bea6f-a01e-4e4b-84f8-ea82865091bf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.