theforeman / theforeman.foreman / 4.0.0 / module / content_upload Upload content to a repository | "added in version" 1.0.0 of theforeman.foreman" Authors: Eric D Helms (@ehelms)theforeman.foreman.content_upload (4.0.0) — module
Install with ansible-galaxy collection install theforeman.foreman:==4.0.0
collections: - name: theforeman.foreman version: 4.0.0
Allows the upload of content to a repository
- name: "Upload my.rpm" theforeman.foreman.content_upload: username: "admin" password: "changeme" server_url: "https://foreman.example.com" src: "my.rpm" repository: "Build RPMs" product: "My Product" organization: "Default Organization"
- name: "Upload ostree-archive.tar" theforeman.foreman.content_upload: username: "admin" password: "changeme" server_url: "https://foreman.example.com" src: "ostree_archive.tar" repository: "My OStree Repository" product: "My Product" organization: "Default Organization" ostree_repository_name: "small"
src: aliases: - file description: - File (on the remote/target machine) to upload required: true type: path product: description: - Product to which the repository lives in required: true type: str password: description: - Password of the user accessing the Foreman server. - If the value is not specified in the task, the value of environment variable C(FOREMAN_PASSWORD) will be used instead. required: true type: str username: description: - Username accessing the Foreman server. - If the value is not specified in the task, the value of environment variable C(FOREMAN_USERNAME) will be used instead. required: true type: str repository: description: - Repository to upload file in to required: true type: str server_url: description: - URL of the Foreman server. - If the value is not specified in the task, the value of environment variable C(FOREMAN_SERVER_URL) will be used instead. required: true type: str organization: description: - Organization that the entity is in required: true type: str validate_certs: default: true description: - Whether or not to verify the TLS certificates of the Foreman server. - If the value is not specified in the task, the value of environment variable C(FOREMAN_VALIDATE_CERTS) will be used instead. type: bool ostree_repository_name: description: - Name of repository within the OSTree archive. - Required for OSTree uploads. required: false type: str