1 2 3 4 5 6 7 8 9 10 11 12
--- - hosts: cluster_hosts vars: yum_repos: [] tasks: # enable additional yum repos - name: Add repository yum_repository: name: "{{ item.name }}" description: "{{ item.description }}" baseurl: "{{ item.baseurl }}" with_items: "{{ yum_repos }}"