Debian Codegraph @

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

raw symbols SCIP
1 theforeman.foreman.operatingsystems
2 ===================================
3
4 This role creates and manages Operatingsystems.
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_operatingsystems`. Each `operatingsystem` requires the following fields:
12
13 - `name`: The name of the operatingsystem.
14
15 For all other fields see the `operatingsystem` module. The field `default_templates` can also be used to assign
16 default provisioning templates for the operatingsystem where each `template` consists of the fields from the module
17 `os_default_template`.
18
19 Example Playbook
20 ----------------
21
22 Create operating system `RedHat 8.5` and assign it templates for provisioning using `cloud-init` and `open-vm-tools`:
23
24 ```yaml
25 - hosts: localhost
26 roles:
27 - role: theforeman.foreman.operatingsystems
28 vars:
29 foreman_server_url: https://foreman.example.com
30 foreman_username: "admin"
31 foreman_password: "changeme"
32 foreman_operatingsystems:
33 - name: "RedHat"
34 major: "8"
35 minor: "5"
36 os_family: "Redhat"
37 password_hash: "SHA256"
38 default_templates:
39 - template_kind: "cloud-init"
40 provisioning_template: "CloudInit default"
41 - template_kind: "user_data"
42 provisioning_template: "UserData open-vm-tools"
43 ```