redhat.satellite.templates_import – Sync Templates from a repository
Note
This plugin is part of the redhat.satellite collection (version 3.0.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install redhat.satellite
.
To use it in a playbook, specify: redhat.satellite.templates_import
.
New in version 1.0.0: of redhat.satellite
Synopsis
Sync provisioning templates, report_templates, partition tables and job templates from external git repository or file system.
Based on foreman_templates plugin https://github.com/theforeman/foreman_templates.
Requirements
The below requirements are needed on the host that executes this module.
requests
Parameters
Notes
Note
Due to a bug in the foreman_templates plugin, this module won’t report
changed=true
when the only change is the Organization/Location association of the imported templates. Please see https://projects.theforeman.org/issues/29534 for details.Default values for all module options can be set using redhat.satellite.setting for TemplateSync category or on the settings page in WebUI.
Examples
- name: Sync templates from git repo
redhat.satellite.templates_import:
repo: https://github.com/theforeman/community-templates.git
branch: 1.24-stable
associate: new
server_url: "https://satellite.example.com"
username: "admin"
password: "changeme"
Return Values
Common return values are documented here, the following are the fields unique to this module: