summaryrefslogtreecommitdiffstats
path: root/playbooks/provisioning/openstack/custom-actions/add-rhn-pools.yml
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks/provisioning/openstack/custom-actions/add-rhn-pools.yml')
-rw-r--r--playbooks/provisioning/openstack/custom-actions/add-rhn-pools.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/playbooks/provisioning/openstack/custom-actions/add-rhn-pools.yml b/playbooks/provisioning/openstack/custom-actions/add-rhn-pools.yml
new file mode 100644
index 000000000..d17c1e335
--- /dev/null
+++ b/playbooks/provisioning/openstack/custom-actions/add-rhn-pools.yml
@@ -0,0 +1,13 @@
+---
+- hosts: cluster_hosts
+ vars:
+ rhn_pools: []
+ tasks:
+ - name: Attach additional RHN pools
+ become: true
+ with_items: "{{ rhn_pools }}"
+ command: "/usr/bin/subscription-manager attach --pool={{ item }}"
+ register: attach_rhn_pools_result
+ until: attach_rhn_pools_result.rc == 0
+ retries: 10
+ delay: 1