Debian Codegraph @

ansible_collections/theforeman/foreman/roles/provisioning_templates/README.md

raw symbols SCIP
1 theforeman.foreman.provisioning_templates
2 =========================================
3
4 This role creates and manages Provisioning Templates.
5
6 Role Variables
7 --------------
8
9 This role supports the [Common Role Variables](https://github.com/theforeman/foreman-ansible-modules/blob/develop/README.md#common-role-variables).
10
11 The main data structure for this role is the list of `foreman_provisioning_templates`. Each `provisioning_template` accepts fields according to the module `provisioning_template`.
12
13 Example Playbook
14 ----------------
15
16 Create a custom template `CloudInit vSphere` using the file `files/cloudinit_vsphere.erb` and assign it to the
17 operating systems `RedHat 7.9` and `RedHat 8.5`:
18
19 ```yaml
20 - hosts: localhost
21 roles:
22 - role: theforeman.foreman.provisioning_templates
23 vars:
24 foreman_server_url: https://foreman.example.com
25 foreman_username: "admin"
26 foreman_password: "changeme"
27 foreman_provisioning_templates:
28 - name: CloudInit vSphere
29 template: "{{ lookup('file', 'cloudinit_vsphere.erb') }}"
30 operatingsystems:
31 - RedHat 7.9
32 - RedHat 8.5
33 ```