This works:

    - name: "Enable repos"
      yum:
        name: "{{ item }}"
        state: present
      with_items:
        - https:
//fedorapeople.org/groups/katello/releases/yum/3.4/katello/el7/x86_64/katello-repos-latest.rpm
        - https:
//yum.theforeman.org/releases/1.15/el7/x86_64/foreman-release.rpm
        - https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm
        - https:
//dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    - name: "Install foreman-scl"
      yum:
        name: foreman-release-scl
        state: present

This doesn't:

    - name: "Enable repos"
      yum:
        name: "{{ item }}"
        state: present
      with_items:
        - https:
//fedorapeople.org/groups/katello/releases/yum/3.4/katello/el7/x86_64/katello-repos-latest.rpm
        - https:
//yum.theforeman.org/releases/1.15/el7/x86_64/foreman-release.rpm
        - https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm
        - https:
//dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
        - foreman-release-scl
        state: present

Shouldn't this ^ work as well?

-- 
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/70f9ce02-ee2b-46ea-83bf-6c0a289ddb54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to