summaryrefslogtreecommitdiffstats
path: root/playbooks/provisioning/openstack/custom-actions
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks/provisioning/openstack/custom-actions')
-rw-r--r--playbooks/provisioning/openstack/custom-actions/add-yum-repos.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/playbooks/provisioning/openstack/custom-actions/add-yum-repos.yml b/playbooks/provisioning/openstack/custom-actions/add-yum-repos.yml
new file mode 100644
index 000000000..ffebcb642
--- /dev/null
+++ b/playbooks/provisioning/openstack/custom-actions/add-yum-repos.yml
@@ -0,0 +1,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 }}"