theforeman.foreman.templates_import – Sync Templates from a repository¶
Note
This plugin is part of the theforeman.foreman collection (version 2.1.1).
To install it use: ansible-galaxy collection install theforeman.foreman
.
To use it in a playbook, specify: theforeman.foreman.templates_import
.
New in version 1.0.0: of theforeman.foreman
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.
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 theforeman.foreman.setting for TemplateSync category or on the settings page in WebUI.
Examples¶
- name: Sync templates from git repo
theforeman.foreman.templates_import:
repo: https://github.com/theforeman/community-templates.git
branch: 1.24-stable
associate: new
server_url: "https://foreman.example.com"
username: "admin"
password: "changeme"
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Anton Nesterov (@nesanton)