theforeman / theforeman.foreman / 4.0.0 / module / content_export_library Manage library content exports | "added in version" 3.5.0 of theforeman.foreman" Authors: Jeremy Lenz (@jeremylenz)theforeman.foreman.content_export_library (4.0.0) — module
Install with ansible-galaxy collection install theforeman.foreman:==4.0.0
collections: - name: theforeman.foreman version: 4.0.0
Export library content to a directory.
- name: "Export library content (full)" theforeman.foreman.content_export_library: username: "admin" password: "changeme" server_url: "https://foreman.example.com" organization: "Default Organization" destination_server: "airgapped.example.com"
- name: "Export library content (full) and fail if any repos are unexportable" theforeman.foreman.content_export_library: username: "admin" password: "changeme" server_url: "https://foreman.example.com" organization: "Default Organization" destination_server: "airgapped.example.com" fail_on_missing_content: true
- name: "Export library content (full) in chunks of 10 GB" theforeman.foreman.content_export_library: username: "admin" password: "changeme" server_url: "https://foreman.example.com" chunk_size_gb: 10 organization: "Default Organization" destination_server: "airgapped.example.com"
- name: "Export library content (incremental) since the most recent export" theforeman.foreman.content_export_library: username: "admin" password: "changeme" server_url: "https://foreman.example.com" organization: "Default Organization" destination_server: "airgapped.example.com" incremental: true
- name: "Export library content (incremental) since a specific export" theforeman.foreman.content_export_library: username: "admin" password: "changeme" server_url: "https://foreman.example.com" organization: "Default Organization" destination_server: "airgapped.example.com" incremental: true from_history_id: 12345
format: choices: - syncable - importable description: - Export format. - Choose C(syncable) if the exported content needs to be in a yum format. required: false type: str version_added: 3.10.0 version_added_collection: theforeman.foreman 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 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 incremental: description: - Export only the content that has changed since the last export. required: false type: bool organization: description: - Organization that the entity is in required: true type: str chunk_size_gb: description: - Split the exported content into archives no greater than the specified size in gigabytes. required: false type: int 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 from_history_id: description: - Export history identifier used for incremental export. If not provided the most recent export history will be used. required: false type: int destination_server: description: - Destination server name; optional parameter to differentiate between exports required: false type: str fail_on_missing_content: description: - Fails if any of the repositories belonging to this organization are unexportable. required: false type: bool