Project

General

Profile

Actions

Bug #32339

closed

hammer repository create needs to take a requirements file

Added by Partha Aji over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

$ hammer repository create --help|grep ansible
 --ansible-collection-auth-token ANSIBLE_COLLECTION_AUTH_TOKEN     The token key to use for authentication.
 --ansible-collection-auth-url ANSIBLE_COLLECTION_AUTH_URL         The URL to receive a session token from, e.g. used with Automation Hub.
 --ansible-collection-requirements ANSIBLE_COLLECTION_REQUIREMENTS Contents of requirement yaml file to sync from URL
                                                                   Possible value(s): 'ansible_collection', 'deb', 'docker', 'file', 'yum'

Notice that `--ansible-collection-requirements` takes in the contents as opposed to the file. A better option is to have the accept a `--ansible-collection-requirements-file` option and send the contents over.

Actions

Also available in: Atom PDF