summaryrefslogtreecommitdiffstats
path: root/playbooks/openstack/custom-actions/add-rhn-pools.yml
blob: d17c1e3357350e5d8f91d4f30ea3b91e802051bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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