Skip to content

Commit

Permalink
Merge pull request rhtconsulting#157 from vvaldez/satellite-with-org
Browse files Browse the repository at this point in the history
Add org parameter to Satellite with user/pass
  • Loading branch information
etsauer authored Jun 22, 2016
2 parents 833753d + 2ac53b8 commit 5fd360e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rhc-ose-ansible/roles/subscription-manager/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,18 @@
when:
- not registered
- rhsm_authentication == "password"
- rhsm_org is not defined or rhsm_org is none or rhsm_org|trim == ''

# This can apply to either Hosted or Satellite
- name: "Register using username, password and organization"
command: "/usr/bin/subscription-manager register --username={{ rhsm_username }} --password={{ rhsm_password }} --org={{ rhsm_org }}"
no_log: true
when:
- not registered
- rhsm_authentication == "password"
- rhsm_org is defined
- rhsm_org is not none
- rhsm_org|trim != ''

- name: "Auto-attach to Subscription Manager Pool"
command: "/usr/bin/subscription-manager attach --auto"
Expand Down

0 comments on commit 5fd360e

Please sign in to comment.