redhat_subscription and pool ID

10 views
Skip to first unread message

Uwe Sauter

unread,
Apr 9, 2016, 6:19:17 AM4/9/16
to Ansible Project
Hi,

I'm trying to use redhat_subscription to register and subscribe hosts by pool ID, not subscription name. Is this
possible? As I have several subscriptions that overlap in some features I'd like to be explicit about which host gets
subscribed to which pool by using the unique pool ID. Currently the module failes to register and subscribe hosts.

Part of the role I'm using:

######
---
- include_vars: redhat_subscription.yml

- name: 'Red Hat subscription'
redhat_subscription:
state: present
username: <username>
password: "{{ redhat_password }}"
pool: "{{ redhat_subscription_pool }}"
when: ansible_distribution == "RedHat" and redhat_subscription_pool is defined
######

redhat_password is defined in redhat_subscription.yml while redhat_subscription_pool is defined in host_vars/*

Is using the pool ID explicitly currently not supported or am I doing something wrong here?


Thanks,

Uwe
Reply all
Reply to author
Forward
0 new messages