From: David Galloway Date: Mon, 22 Aug 2022 01:32:28 +0000 (-0400) Subject: cobbler: Support RHEL8 when importing tasks and vars X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=0f7788ce3b17e1bf806d68587799ecb61d6c76ca;p=ceph-cm-ansible.git cobbler: Support RHEL8 when importing tasks and vars Signed-off-by: David Galloway --- diff --git a/roles/cobbler/tasks/main.yml b/roles/cobbler/tasks/main.yml index c2aa71f..64f36fb 100644 --- a/roles/cobbler/tasks/main.yml +++ b/roles/cobbler/tasks/main.yml @@ -29,7 +29,7 @@ - always - import_tasks: yum_systems.yml - when: ansible_pkg_mgr == "yum" + when: ansible_os_family == "RedHat" - import_tasks: apt_systems.yml when: ansible_pkg_mgr == "apt" diff --git a/roles/cobbler/vars/dnf_systems.yml b/roles/cobbler/vars/dnf_systems.yml new file mode 100644 index 0000000..05a4441 --- /dev/null +++ b/roles/cobbler/vars/dnf_systems.yml @@ -0,0 +1,25 @@ +--- +# cobbler-web pulls in cobbler +cobbler_package: cobbler-web +cobbler_service: cobblerd +httpd_service: httpd +cobbler_extra_packages: + - git + - syslinux + - pykickstart + - fence-agents-all + - nmap + +pip_packages: [] + +settings: + - name: yum_post_install_mirror + value: 0 + - name: signature_url + value: https://raw.githubusercontent.com/cobbler/cobbler/master/config/cobbler/distro_signatures.json + - name: server + value: "{{ ip }}" + - name: next_server + value: "{{ ip }}" + - name: pxe_just_once + value: 1