---

#debug packages

  - name: subscription-manager register and attach pool
    redhat_subscription:
       state: present
       username: "{{ subscription_name }}"
       password: "{{ subscription_pass }}"
       autosubscribe: true
       pool: "{{ subscription_pool }}"
       #pool: '^Employee SKU$'

  - shell: subscription-manager repos --disable='*'
  - shell: subscription-manager repos --enable='rhel-7-server-rpms' --enable='rhel-7-server-extras-rpms' --enable='rhel-7-server-ose-3.1-rpms' --enable='rhel-7-server-optional-rpms'

---

#debug packages

  - name: subscription-manager register and attach pool
    redhat_subscription:
       state: present
       username: "{{ subscription_name }}"
       password: "{{ subscription_pass }}"
       autosubscribe: true
       pool: "{{ subscription_pool }}"
       #pool: '^Employee SKU$'

#Disable all the repository
  - shell: subscription-manager repos --disable='*'

#Enable opensift repo
  - name: enable repo rhel-7 and ose 3.1
    shell: subscription-manager repos --enable='rhel-7-server-rpms' --enable='rhel-7-server-extras-rpms' --enable='rhel-7-server-ose-3.1-rpms' --enable='rhel-7-server-optional-rpms'
    when: not ansible_local.system.is_atomic | bool

Remove enable repo for atomic
Remove enable repo for atomic

  * We just need to attach a pool on atomic, not enable repository (because we use docker images directly)
