Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration path: system [ntp] is not valid #339

Open
timherrm opened this issue Jan 26, 2024 · 0 comments
Open

Configuration path: system [ntp] is not valid #339

timherrm opened this issue Jan 26, 2024 · 0 comments

Comments

@timherrm
Copy link

SUMMARY

I am trying to configure an NTP server on an VyOS router. I copied the example from the ntp_global module and edited it to meet my environment.

On VyOS 1.3 this is working as the command to set ntp-servers is: set system ntp
On VyOS 1.5 the command to set ntp-servers is: set service ntp

Because of this change the playbook fails.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

vyos.vyos.vyos_ntp_global

ANSIBLE VERSION
ansible [core 2.15.8]
  python version = 3.9.6 (default, Nov 10 2023, 13:38:27) [Clang 15.0.0 (clang-1500.1.0.2.5)]
  jinja version = 3.1.3
  libyaml = True
COLLECTION VERSION
Collection Version
---------- -------
vyos.vyos  4.1.0  
CONFIGURATION

OS / ENVIRONMENT
vyos@vyos:~$ show version
Version:          VyOS 1.5-rolling-202401240024
Release train:    current

Built by:         [email protected]
Built on:         Wed 24 Jan 2024 02:18 UTC
Build UUID:       8e846105-cd9d-4530-8ead-7e917dc2ef37
Build commit ID:  6c6a5856122790

Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest
STEPS TO REPRODUCE
    - name: Replace the existing ntp config with the new config
      vyos.vyos.vyos_ntp_global:
        config:
            servers:
              - server: "{{ntp1_ip}}"
              - server: "{{ntp2_ip}}"
        state: replaced
EXPECTED RESULTS

NTP-server is set to the given IP

ACTUAL RESULTS
fatal: [host_vyos]: FAILED! => changed=false 
  module_stderr: |-
    set system ntp server REDACTED
  
      Configuration path: system [ntp] is not valid
      Set failed
  
    [edit]
    vyos@vyos#
  module_stdout: ''
  msg: |-
    MODULE FAILURE
    See stdout/stderr for the exact error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant