On 22. aug. 2017 16:55, Sameer Modak wrote:
No its still the same,
That's as expected, you with_items indentation is exactly the same as
your previous mail.
- 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" }
Your with_items: is indented too fare, remove 2 space in front of it.
- 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" }
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/90ef9ffb-96b9-f606-53cc-ceecdff448ce%40olstad.com.
For more options, visit https://groups.google.com/d/optout.