Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove 'when is defined' in main.yml #28

Merged
merged 3 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ cobbler_autoinstall_templates: []
cobbler_settings:

# Cobbler distros (OS)
cobbler_distros: []
# cobbler_distros:
# - name: distro_name
# netboot: # Information about netboot files initrd and kernel
Expand All @@ -66,6 +67,7 @@ cobbler_settings:
# kernel: /var/lib/tftpboot/debian/11.2/debian-installer/amd64/linux

# Cobbler profiles
cobbler_profiles: []
# cobbler_profiles:
# - name: profile_name
# properties: # Dict of Cobbler properties, as defined in the plugin cobbler_profile
Expand All @@ -76,6 +78,9 @@ cobbler_settings:
# content: |
# any content to put in $SNIPPET('partition')

# Cobbler systems
cobbler_systems: []

## Dnsmasq
# To use Dnsmasq as DHCP and DNS servers managed by Cobbler, enable this
# module.
Expand Down
3 changes: 0 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,11 @@
- name: Configure distros
ansible.builtin.include_tasks:
file: "distros.yml"
when: cobbler_distros is defined

- name: Configure profiles
ansible.builtin.include_tasks:
file: "profiles.yml"
when: cobbler_profiles is defined

- name: Configure systems
ansible.builtin.include_tasks:
file: "systems.yml"
when: cobbler_systems is defined
Loading