On 21. aug. 2017 17:29, Sameer Modak wrote:
  hosts: all
   tasks:
   - name: "install EPEL and Remi reps"
     yum_repository:
       name: "{{ item.href }}"
       basurl: "{{ item.repo }}"
       with_items:
       - { href:
"http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm";,
repo: "/etc/yum.repos.d/epel.repo" }
       - { href:
"http://rpms.famillecollet.com/enterprise/remi-release-7.rpm";, repo:
"/etc/yum.repos.d/remi.repo" }
========================

You indentation on with_items is wrong.
with_items is a property for the task and not yum_repository, so indentation should be at the same level as name and yum_repository.


--
Kai Stian Olstad

--
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/22368b10-ef7c-ada5-5f4a-26cf5b6fec3f%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to