Skip to content

Instantly share code, notes, and snippets.

View marianschmotzer's full-sized avatar

Marian Schmotzer marianschmotzer

  • Chilli Systems
  • Slovakia
View GitHub Profile
# Add the each distro/profile pair only if the distro doesn't already exist
- name: check distro exists in cobbler
with_items: distros
command: cobbler distro report --name={{ item.name }}
register: distro_result
ignore_errors: true
failed_when: False
changed_when: False
when: distros is defined