theforeman.foreman.subscription_info – Fetch information about Subscriptions
This plugin is part of the theforeman.foreman collection (version 2.2.0).
You might already have this collection installed if you are using the
It is not included in
To check whether it is installed, run
ansible-galaxy collection list.
To install it, use:
ansible-galaxy collection install theforeman.foreman.
To use it in a playbook, specify:
New in version 2.1.0: of theforeman.foreman
- name: "Show a subscription" theforeman.foreman.subscription_info: username: "admin" password: "changeme" server_url: "https://foreman.example.com" name: "Red Hat Satellite Infrastructure Subscription" - name: "Show all subscriptions with a certain name" theforeman.foreman.subscription_info: username: "admin" password: "changeme" server_url: "https://foreman.example.com" search: name="Red Hat Satellite Infrastructure Subscription"
Common return values are documented here, the following are the fields unique to this module:
|success and name was passed||
Details about the found subscription
list / elements=dictionary
|success and search was passed||
List of all found subscriptions and their details