Skip to content

Commit

Permalink
fix(installation_mediums): support operatingsystems dict (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare authored Nov 4, 2022
1 parent 3ad22ac commit d68542d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/installation_mediums/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The following fields are optional in the sense that the server will use default

- `updated_name`: New full installation medium name. When this parameter is set, the module will not be idempotent.
- `os_family`: The OS family the template shall be assigned with. If no `os_family` is set but a operatingsystem, the value will be derived from it.
- `operatingsystems`: Dict of operatingsystems. See, `os_family` for options.
- `path`: Path or URL to the installation medium.

## Dependencies
Expand Down
1 change: 1 addition & 0 deletions roles/installation_mediums/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
name: "{{ foreman_installation_mediums_item.name }}"
updated_name: "{{ foreman_installation_mediums_item.updated_name | default(omit) }}"
os_family: "{{ foreman_installation_mediums_item.os_family | default(omit) }}"
operatingsystems: "{{ foreman_installation_mediums_item.operatingsystems | default(omit) }}"
path: "{{ foreman_installation_mediums_item.path | default(omit) }}"
state: "{{ foreman_installation_mediums_item.state | default(omit) }}"
loop: "{{ foreman_installation_mediums | default([]) }}"
Expand Down

0 comments on commit d68542d

Please sign in to comment.