theforeman / foreman-ansible-modules

Ansible modules for interacting with the Foreman API and various plugin APIs such as Katello
GNU General Public License v3.0
147 stars 163 forks source link

Make katello_repository_set work with label #166

Closed sean797 closed 5 years ago

sean797 commented 6 years ago
SUMMARY

currently, I must specify name & product with katello_repository_set module. The latest version of Katello supports searching via label instead of name and product, let's enable that instead - its more user-friendly.

  katello_repository_set:
    username: "admin"
    password: "changeme"
    server_url: "https://foreman.example.com"
    verify_ssl: false
    organization: "Default Organization"
    label:  rhel-7-server-extras-rpms
    state: enabled
    repositories:
      - basearch: x86_64
ISSUE TYPE
mdellweg commented 5 years ago

Is this implemented? If yes, the label is still missing in the Documentation.

See: https://github.com/theforeman/foreman-ansible-modules/blob/e1931eb282791587eb902864828a32450ac02434/modules/katello_repository_set.py#L191

sean797 commented 5 years ago

Yes, thanks @mdellweg

mdellweg commented 5 years ago

@sean797 can you take care of the missing documentation for the label parameter? I do not feel confident enough to know whose label that is.