0

过去,我在我的 Ansible 剧本中使用这个命令:

ntpdate pool.ntp.org

它奏效了。但是现在,在 Centos 8ntpdate上不再支持和chrony使用。但是,等效的命令

chronyd -q 'server pool.ntp.org iburst'

引发错误:

fatal: [localhost]: FAILED! => changed=true
  cmd: chronyd -q 'server pool.ntp.org iburst'
  delta: '0:00:00.005235'
  end: '2020-05-14 04:36:33.763055'
  msg: non-zero return code
  rc: 1
  start: '2020-05-14 04:36:33.757820'
  stderr: |-
    2020-05-14T08:36:33Z chronyd version 3.5 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +SECHASH +IPV6 +DEBUG)
    2020-05-14T08:36:33Z Fatal error : Another chronyd may already be running (pid=1338), check /var/run/chrony/chronyd.pid
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>

我该如何解决?

4

0 回答 0