Skip to content

SLES 15.7 uses chronyd instead of ntpd - role fails #146

@nikolaisen-hhpv

Description

@nikolaisen-hhpv

We're calling this ansible role from another playbook. In SLES 15.7 machines it fails:

TASK [geerlingguy.ntp : Ensure NTP package is installed.] **********************
[ERROR]: Task failed: Module failed: No provider of '+ntp' found.
Origin: /home/runner/.ansible/roles/geerlingguy.ntp/tasks/main.yml:29:3

27   when: ntp_daemon is not defined
28
29 - name: Ensure NTP package is installed.
     ^ column 3

fatal: [MYHOST.example.domain]: FAILED! => {"changed": false, "cmd": ["/usr/bin/zypper", "--non-interactive", "--xmlout", "--quiet", "install", "--type", "package", "--auto-agree-with-licenses", "--no-recommends", "--", "+ntp"], "msg": "No provider of '+ntp' found.", "rc": 104, "stderr": "", "stderr_lines": [], "stdout": "<?xml version='1.0'?>\n<stream>\n<message type=\"error\">No provider of &apos;+ntp&apos; found.</message>\n</stream>\n", "stdout_lines": ["<?xml version='1.0'?>", "<stream>", "<message type=\"error\">No provider of &apos;+ntp&apos; found.</message>", "</stream>"]}

PLAY RECAP *********************************************************************
MYHOST.example.domain      : ok=6    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   

We need to distinguish between SLES <= 15 and SLES >= 15.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions