This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |