- name: Enable ntp service
  become: yes
  command: /usr/bin/timedatectl set-ntp true
  tags:
    - ntp

# Equivalent /usr/bin/timedatectl set-ntp true
# https://wiki.archlinux.org/index.php/systemd-timesyncd
- name: Enable ntp service
  become: yes
  service:
    name: systemd-timesyncd.service
    enabled: yes
    state: started
  tags:
    - ntp

Use service module instead of command
Use service module instead of command
