diff options
author | Tomas Sedovic <tomas@sedovic.cz> | 2017-10-13 16:00:50 +0200 |
---|---|---|
committer | Tomas Sedovic <tomas@sedovic.cz> | 2017-10-13 16:00:50 +0200 |
commit | 255bda6812c53d39723d0ad2b27698e2d627f3bd (patch) | |
tree | bbc2b52779d3aa99e3c32787d2c2f673cf6f1a0b /playbooks/provisioning/openstack/custom-actions | |
parent | 9a697aca1fd6a4e13bb67cb09f89527927b77b3e (diff) | |
parent | b450ff75888f7801094ca88957a237f33f5e85f1 (diff) | |
download | openshift-255bda6812c53d39723d0ad2b27698e2d627f3bd.tar.gz openshift-255bda6812c53d39723d0ad2b27698e2d627f3bd.tar.bz2 openshift-255bda6812c53d39723d0ad2b27698e2d627f3bd.tar.xz openshift-255bda6812c53d39723d0ad2b27698e2d627f3bd.zip |
Merge branch 'master' into openstack-docs
Diffstat (limited to 'playbooks/provisioning/openstack/custom-actions')
-rw-r--r-- | playbooks/provisioning/openstack/custom-actions/add-rhn-pools.yml | 13 |
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 |