ansible/utils/ntpdate.yml
2020-05-26 00:41:41 +02:00

15 lines
244 B
YAML

---
- name: update date
hosts: all
become_method: sudo
become_user: root
become: yes
tasks:
- name: update datetime via ntpdate
shell:
cmd: |
ntpdate 192.168.50.3
args:
executable: /bin/bash