theforeman / theforeman.foreman / 4.0.0 / module / smart_proxy Manage Smart Proxies | "added in version" 1.4.0 of theforeman.foreman" Authors: James Stuart (@jstuart), Matthias M Dellweg (@mdellweg), Jeffrey van Pelt (@Thulium-Drake)theforeman.foreman.smart_proxy (4.0.0) — module
Install with ansible-galaxy collection install theforeman.foreman:==4.0.0
collections: - name: theforeman.foreman version: 4.0.0
Create, update and delete Smart Proxies
# Create a local Smart Proxy - name: "Create Smart Proxy" theforeman.foreman.smart_proxy: username: "admin" password: "changeme" server_url: "https://{{ ansible_fqdn }}" name: "{{ ansible_fqdn }}" url: "https://{{ ansible_fqdn }}:9090" download_policy: "immediate" lifecycle_environments: - "Development" organizations: - "Default Organization" locations: - "Default Location" state: present
url: description: - URL of the Smart Proxy required: true type: str name: description: - Name of the Smart Proxy required: true type: str state: choices: - present - absent default: present description: - State of the entity 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 locations: description: List of locations the entity should be assigned to elements: str type: list 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 organizations: description: List of organizations the entity should be assigned to elements: str type: list 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 download_policy: choices: - background - immediate - on_demand - streamed - inherit description: - The download policy for the Smart Proxy - Only available for Katello installations. - The download policy C(background) is deprecated and not available since Katello 4.3. - The download policy C(streamed) is available since Katello 4.5. required: false type: str lifecycle_environments: description: - Lifecycle Environments synced to the Smart Proxy. - Only available for Katello installations. elements: str required: false type: list
entity: contains: smart_proxies: description: List of smart_proxies. elements: dict type: list description: Final state of the affected entities grouped by their type. returned: success type: dict