redhat.satellite.operatingsystems

This role creates and manages Operatingsystems.

Role Variables

This role supports the Common Role Variables.

The main data structure for this role is the list of satellite_operatingsystems. Each operatingsystem requires the following fields:

  • name: The name of the operatingsystem.

For all other fields see the operatingsystem module. The field default_templates can also be used to assign default provisioning templates for the operatingsystem where each template consists of the fields from the module os_default_template.

Example Playbook

Create operating system RedHat 8.5 and assign it templates for provisioning using cloud-init and open-vm-tools:

- hosts: localhost
  roles:
    - role: redhat.satellite.operatingsystems
      vars:
        satellite_server_url: https://satellite.example.com
        satellite_username: "admin"
        satellite_password: "changeme"
        satellite_operatingsystems:
          - name: "RedHat"
            major: "8"
            minor: "5"
            os_family: "Redhat"
            password_hash: "SHA256"
            default_templates:
              - template_kind: "cloud-init"
                provisioning_template: "CloudInit default"
              - template_kind: "user_data"
                provisioning_template: "UserData open-vm-tools"